Intel® C++ Compiler XE 13.1 User and Reference Guides
Enables or disables function ordering if profiling information is enabled.
IA-32, Intel® 64 architecture
Linux: | -prof-func-order -no-prof-func-order |
OS X: | None |
Windows: | /Qprof-func-order /Qprof-func-order- |
None
-no-prof-func-order |
Function ordering is disabled. |
This option enables or disables function ordering if profiling information is enabled.
For this option to be effective, you must do the following:
For instrumentation compilation, you must specify -prof-gen=srcpos (Linux* OS) or /Qprof-gen:srcpos (Windows* OS).
For feedback compilation, you must specify -prof-use (Linux OS) or /Qprof-use (Windows OS). You must not use multi-file optimization by specifying options such as option -ipo (Linux OS) or /Qipo (Windows OS), or option -ipo-c (Linux OS) or /Qipo-c (Windows OS).
If you enable profiling information by specifying option -prof-use (Linux OS) or /Qprof-use (Windows OS), -prof-func-groups (Linux OS) and /Qprof-func-groups (Windows OS) are set and function grouping is enabled. However, if you explicitly enable -prof-func-order (Linux OS) or /Qprof-func-order (Windows OS), function ordering is performed instead of function grouping.
On Linux* systems, this option is only available for Linux linker 2.15.94.0.1, or later.
To set the hotness threshold for function grouping and function ordering, use option -prof-hotness-threshold (Linux OS) or /Qprof-hotness-threshold (Windows OS).
None
The following example shows how to use this option on a Windows system:
icl /Qprof-gen:globdata file1.c file2.c /Fe instrumented.exe
./instrumented.exe
icl /Qprof-use /Qprof-func-order file1.c file2.c /Fe feedback.exe
The following example shows how to use this option on a Linux system:
icl -prof-gen:globdata file1.c file2.c -o instrumented
./instrumented.exe
icl -prof-use -prof-func-order file1.c file2.c -o feedback