-qphsinfo

Category

Listings, messages, and compiler information

Pragma equivalent

None.

Purpose

Reports the time taken in each compilation phase to standard output.

Syntax

Read syntax diagramSkip visual syntax diagram
        .-nophsinfo-.   
>>- -q--+-phsinfo---+------------------------------------------><

Defaults

-qnophsinfo

Usage

The output takes the form number1/number2 for each phase where number1 represents the CPU time used by the compiler and number2 represents the total of the compile time and the time that the CPU spends handling system calls.

The time reported by -qphsinfo is in seconds.

Predefined macros

None.

Examples

To compile myprogram.c and report the time taken for each phase of the compilation, enter:
xlc myprogram.c -qphsinfo
The output will look similar to:
C Init    - Phase Ends;   0.010/  0.040
IL Gen    - Phase Ends;   0.040/  0.070
W-TRANS   - Phase Ends;   0.000/  0.010
OPTIMIZ   - Phase Ends;   0.000/  0.000
REGALLO   - Phase Ends;   0.000/  0.000
AS        - Phase Ends;   0.000/  0.000
Compiling the same program with -O4 gives:
C Init    - Phase Ends;   0.010/  0.040
IL Gen    - Phase Ends;   0.060/  0.070
IPA       - Phase Ends;   0.060/  0.070
IPA       - Phase Ends;   0.070/  0.110
W-TRANS   - Phase Ends;   0.060/  0.180
OPTIMIZ   - Phase Ends;   0.010/  0.010
REGALLO   - Phase Ends;   0.010/  0.020
AS        - Phase Ends;   0.000/  0.000