Options for error checking and debugging

Table 24. Options for debugging
Option name Type Default Description
-g -flag - Generates debugging information for use by a debugger.
C only -qdbxextra -qopt -qnodbxextra Specifies that all typedef declarations, struct, union, and enum type definitions are included for debugger processing.
-qfullpath -qopt -qnofullpath Specifies the path information that is stored for files when you use the -g option.
-qlinedebug -qopt -qnolinedebug Generates abbreviated line number and source file name information for the debugger.
C only -qsymtab -qopt - Determines what information appears in the symbol table.

Table 25. Options for profiling
Option name Type Default Description
-p -flag - Sets up the object files produced by the compiler for profiling.
-pg -flag - Sets up the object files for profiling.

Table 26. Other error checking and debugging options
Option name Type Default Description
C only -qgenproto -qopt -qnogenproto Produces ANSI prototypes from K&R function definitions.
-qinitauto -qopt -qnoinitauto Initializes automatic storage to a specified two-digit hexadecimal byte value.
-qkeepparm -qopt -qnokeepparm Ensures that function parameters are stored on the stack even if the application is optimized.
C only -qproto -qopt -qnoproto Assumes all functions are prototyped.
-qtbtable -qopt See -qtbtable. Sets traceback table characteristics.