Optimizing for Application Types
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:
/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. Exampleprompt>icl /O1 myprog.cpp |