C/C++ Programmer's Guide (G06.27+, H06.08+, J06.03+)

When code that was generated from separate compilations will later be included in a single
application, you should specify the same raw data file location for all the compilations.
In the OSS and Windows environments, the -Wprofdir flag has an effect only for
-Wtarget=ipf or -Wtarget=tns/e. It is ignored (and no diagnostic is issued) for
-Wtarget=mips or -Wtarget=tns/r.
For more information on code profiling and the Code Profiling Utilities, see the Code Profiling
Utilities Manual.
PROFGEN
The PROFGEN option directs the compiler to generate instrumented object code for use in performing
profile-guided optimization. The PROFGEN option is supported only by the TNS/E native compilers.
PROFGEN
The default settings are:
SYSTYPE OSSSYSTYPE GUARDIAN
N.A.N.A.TNS C compiler
N.A.N.A.G-series TNS c89 utility
N.A.N.A.TNS/R native C and C++ compilers
Not setNot setNative c89 and c99 utilities
Not setNot setTNS/E native C and C++ compilers
Usage Guidelines
The PROFGEN option can be entered only on the compiler RUN command. It can also be
specified with the -Wprofgen flag of the c89 or the c99 command in the OSS and Windows
environments.
If you specify the PROFGEN option, you must also compile at optimization level 2 (OPTIMIZE
2); otherwise, PROFGEN has no effect.
If you specify both PROFGEN and CODECOV, CODECOV overrides PROFGEN.
In the OSS and Windows environments, the -Wprofgen flag has an effect only for
-Wtarget=ipf or -Wtarget=tns/e. It is ignored (and no diagnostic is issued) for
-Wtarget=mips or -Wtarget=tns/r.
Instrumented object code can significantly increase both the compile time and execution time
required by a program. Therefore, the PROFGEN option should be used only in a test
environment.
For more information on code profiling and the Code Profiling Utilities, see the Code Profiling
Utilities Manual.
PROFUSE
The PROFUSE option directs the compiler to generate optimized object code based on information
in a Dynamic Profiling Information (DPI) file. The PROFUSE option is supported only by the TNS/E
native compilers.
PROFUSE ["pathname"]
PROFGEN 229