Visible to Intel only — GUID: GUID-658C23FE-1068-4728-B2EC-F33A15D98DD1
Visible to Intel only — GUID: GUID-658C23FE-1068-4728-B2EC-F33A15D98DD1
Comparison of Function Order Lists and IPO Code Layout
The Intel® compiler provides two methods of optimizing the layout of functions in the executable:
Using a function order list
Using the -ipo (Linux) or /Qipo (Windows) compiler option
Each method has advantages. A function order list, created with proforder, lets you optimize the layout of non-static functions (external and library functions whose names are exposed to the linker).
The compiler cannot affect the layout order for functions it does not compile, such as library functions. The function layout optimization is performed automatically when IPO is active.
Function Order List Effects
Function Type |
IPO Code Layout |
Function Ordering with proforder |
---|---|---|
Static |
X |
No effect |
Extern |
X |
X |
Library |
No effect |
X |
Use the following guidelines to create a function order list:
The order list only affects the order of non-static functions.
- You must compile with /Gy to enable function-level linking. (This option is active if you specify either option /O1 or /O2.)