Previous Topic Next topic Print topic


Compilation Statistics

The -stat compiler option provides a listing of statistics for each phase of the compilation. The statistics are displayed at the terminal by default or can be redirected to a file. The following figure is a sample terminal display from a UNIX system.

Figure 1-2 Sample Output from the -stat Option (UNIX)

PHASE            USER     SYSTEM    CPU  REAL  13:43:26 
Parser Pass 1    0.05       0.02   0.07     0  13:43:26 
Declare          0.00       0.00   0.00     0  13:43:26 
Parser Pass 2    0.08       0.03   0.11     0  13:43:26 
Allocator        0.01       0.00   0.01     0  13:43:27 
Code Generator   0.71       0.05   0.76     1  13:43:27 
Total            0.85       0.10   0.95     1  13:43:27 

Total source lines:                  38 
Lines per minute (CPU):           2,400 
Lines per minute (real):          2,280 

Text size:                 2,574 bytes 
Data size:                   914 bytes 
Bss Size:                      0 bytes

The following names and describes each of the columns displayed in the printout.

Column Description
PHASE Defines the various phases of the compilation. Each phase and its corresponding statistics displays upon completion.
USER Indicates the CPU time spent on this phase of compilation, excluding CPU time spent by the operating system on behalf of the Compiler.
SYSTEM Indicates the CPU time used by the operating system while executing the corresponding phase.
CPU Indicates the CPU time used by the Compiler while executing the corresponding phase. This is simply the sum of USER and SYSTEM.
REAL Indicates the number of seconds elapsed during the corresponding phase.
The final column     Displays the current time of day in 24-hour notation (on Intel systems only).
Previous Topic Next topic Print topic