Developer Guide and Reference

Contents

prof-func-order, Qprof-func-order

Enables or disables function ordering if profiling information is enabled.

Syntax

Linux:
-prof-func-order
-no-prof-func-order
macOS:
None
Windows:
/Qprof-func-order
/Qprof-func-order-
Arguments
None
Default
-no-prof-func-order
or
/Qprof-func-order-
Function ordering is disabled.
Description
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 option
    [Q]prof-gen setting srcpos
    .
  • For feedback compilation, you must specify
    [Q]prof-use
    . You must not use multi-file optimization by specifying options such as
    [Q]ipo
    or
    [Q]ipo-c
    .
If you enable profiling information by specifying option
[Q]prof-use
, option
[Q]prof-func-groups
is set and function grouping is enabled. However, if you explicitly enable the
[Q]prof-func-order
option, 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
[Q]prof-hotness-threshold
.
Alternate Options
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:
icc -prof-gen:globdata file1.c file2.c -o instrumented ./instrumented.exe icc -prof-use -prof-func-order file1.c file2.c -o feedback

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804