Optimizes application performance for IntelŪ ItaniumŪ processors.
Windows: None
Linux: Optimization > Optimize for IntelŪ Processor
Mac OS: None
IntelŪ ItaniumŪ architecture
Linux: | -tpp1 -tpp2 |
Mac OS: | None |
Windows: | /G1 /G2 /G2-p9000 |
None
-tpp2 or /G2 | Performance is optimized for IntelŪ ItaniumŪ 2 processors. |
These options optimize application performance for a particular IntelŪ processor or family of processors. The compiler generates code that takes advantage of features of the Itanium architecture.
Option | Description |
---|---|
tpp1 or G1 | Optimizes for IntelŪ ItaniumŪ processors. |
tpp2 or G2 | Optimizes for IntelŪ ItaniumŪ 2 processors. |
G2-p9000 | Optimizes for Dual-Core IntelŪ ItaniumŪ 2 Processor 9000 Sequence processors. This option affects the order of the generated instructions, but the generated instructions are limited to IntelŪ ItaniumŪ 2 processor instructions unless the program uses (executes) intrinsics specific to the Dual-Core IntelŪ ItaniumŪ 2 Processor 9000 Sequence processors. |
These options always generate code that is backwards compatible with Intel processors of the same architecture. For example, code generated with option tpp2 (Linux) or G2 (Windows) runs correctly on Itanium and Itanium 2 processors, although performance may be faster on Itanium processors when compiled using tpp1 or G1.
G2-p9000 | Linux: mtune=itanium2-p9000, mcpu=itanium2-p9000
Mac OS: None Windows: None |
mtune compiler option
In the following example, the compiled binary of the source program prog.c is optimized for the Itanium 2 processor by default. The same binary will also run on Itanium processors. All lines in the code example are equivalent.
icc prog.c !
command on Linux
icc -tpp2 prog.c ! command on Linux
icl prog.c !
command on Windows
icl /G2 prog.c ! command on Windows
In the following example, the compiled binary is optimized for the Itanium processor:
icc -tpp1 prog.c ! command on Linux
icl /G1 prog.c ! command on Windows