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.
Example
To compile myprogram.c so that it can be used with the AIX prof
command, enter:
xlC myprogram.c -p
List of Compiler Options and Their
Defaults
Options that Specify Debugging Features
pg Compiler Option
prof command in the AIX Version 4 Commands
Reference, for details on profiling.