Enables or disables function ordering if profiling information is enabled.
IA-32, Intel® 64 architectures
Linux: | -prof-func-order -no-prof-func-order |
Mac 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) or /Qprof-gen:srcpos (Windows).
For feedback compilation, you must specify -prof-use (Linux) or /Qprof-use (Windows). You must not use multi-file optimization by specifying options such as option -ipo (Linux) or /Qipo (Windows), or option -ipo-c (Linux) or /Qipo-c (Windows).
If you enable profiling information by specifying option -prof-use (Linux) or /Qprof-use (Windows), -prof-func-groups (Linux) and /Qprof-func-groups (Windows) are set and function grouping is enabled. However, if you explicitly enable -prof-func-order (Linux) or /Qprof-func-order (Windows), 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) or /Qprof-hotness-threshold (Windows).
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
Copyright © 1996-2010, Intel Corporation. All rights reserved.