Option Type | Default Value | #pragma options | C | C++ |
-flag | - | - | x | x |
Syntax
-p
Purpose
Sets up the object files produced by the compiler for profiling.
If the -qtbtable option is not set, the -p option will generate full traceback tables.
Note: When compiling and linking in separate steps, the -p option must be specified in both steps.
Example
To compile myprogram.c so that it can be used with the AIX prof command,
enter:
xlC myprogram.c -p
List of Batch Compiler Options and Their Defaults
Options that Specify Debugging Features
pg Compiler Option
Equivalent Batch Compile-Link and Incremental
Build Options
prof command in the AIX Version 4 Commands Reference, for
details on profiling.