Software Development in the UNIX Environment
Compiler Options for Runtime Checks
Runtime Checks for:
-
subscripts out of bounds
-
null pointers
-
division by zero
-
report source routine and line number where failure
occurs
Compiler Options:
-
SGI Fortran, C,C++ : -
DEBUG:subscript_check:verbose_runtime:div_check
-
IBM Fortran,C,C+: =qcheck=nullptr,bounds,divzero
-
Solaris Fortran for runtime checking of out of
bounds array references: -C
Disadvantages of GNU Compilers vs Native Compilers
-
GNU has some platform-specific optimization but not
as complete
-
GNU often lacking the extra features like run-time
checking
Advantage of GNU Compilers Over Native Compilers
-
Predictability and Stability on Various Hardware
Platforms