The options controlling advanced PGO optimizations are:
Windows* |
Linux* |
Effect |
---|---|---|
/Qprof-dir |
-prof-dir |
Specifies the directory in which dynamic information (.dyn) files are created, otherwise the .dyn files are placed in the directory where the program is compiled. For more information, see the following topic:
|
/Qprof-file |
-prof-file |
Specifies file name for profiling summary file. For more information, see the following topic:
|
/Qprof-gen-sampling |
-prof-gen-sampling |
IA-32 Only. Prepares application executables for hardware profiling (sampling) and causes the compiler to generate source code mapping information. For more information, see the following topic:
|
/Qssp |
-ssp |
IA-32 Only. Enables Software-based Speculative Pre-computation (SSP) optimization. For more information, see the following topic:
|
When you use advanced PGO, consider the following guidelines:
Minimize the changes to your program after instrumented execution and before feedback compilation. During feedback compilation, the compiler ignores dynamic information for functions modified after that information was generated.
Note
The compiler issues a warning that the dynamic information does not correspond to a modified function.
Repeat the instrumentation compilation if you make many changes to your source files after execution and before feedback compilation.
Specify the name of the profile summary file using the -prof-filefile (Linux) or /Qprof-file file (Windows) option.