p

Applies to C Applies to C++

Purpose

Sets up the object files produced by the compiler for profiling.

Syntax


Syntax Diagram

Notes

If the -qtbtable option is not set, the -p option will generate full traceback tables.

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 your operating system's gprof command, enter:

xlc++ myprogram.C -p

Related References

Compiler Command Line Options
tbtable IBM Copyright 2003