Optimizing for Application Types

For Itanium Architecture Only
Click a compiler option to see more information.

Use these options to optimize for a specific type of application. The following descriptions refer to IA-32, Intel® Extended Memory 64 Technology (Intel® EM64T) and Itanium® architectures.

-fast maximizes speed across the entire program. It sets the following options:

  • On Itanium®-based systems:
    Windows*: /O3 and /Qipo
    Linux*: -ipo, -O3, and -static
  • On IA-32 and Intel® EM64T systems:
    Windows: /O3, /Qipo, /Qprec-div-, and /QxP
    Linux: -ipo, -O3, -no-prec-div, -static, and -xP

/O3 (High Level Optimizations) Enables /O2 optimizations, as well as more aggressive optimizations, such as loop and memory access transformation. /O3 optimizations may slow down code in some cases compared to /O2 optimizations. Recommended for applications that have loops with heavy use of floating point calculations and process large data sets.

/O2 On by default. Optimizes for code speed. This is the generally recommended optimization level.

/O1 Optimizes for speed while favoring code size On Itanium®-based systems, it disables software pipelining, loop unrolling, and global code scheduling. On IA-32 systems, it disables intrinsic recognition and intrinsics inlining. In most cases, /O2 is recommended over /O1.

/Od (Linux: -O0) Turns off all optimizations. Use this option for debugging and quick compiles.

Compiler Option Quick Reference

Example

prompt>icl /O1 myprog.cpp