Optimize application performance for IA-32 and Intel® EM64T processors.
These options have been deprecated.
Windows: C/C++ > Optimization > Optimize for Processor
Linux: Optimization > Optimize for Intel® Processor
Mac OS: None
IA-32, Intel® EM64T
Linux: | -tpp5 -tpp6 -tpp7 |
Mac OS: | None |
Windows: | /G5 /G6 /G7 |
None
-tpp7 or /G7 | On IA-32 and Intel® EM64T systems, performance is optimized for Intel® Pentium® 4 processors, Intel® Xeon® processors, Intel® Pentium® M processors, and Intel® Pentium® 4 processors with Streaming SIMD Extensions 3 (SSE3) instruction support. |
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 specified processor.
Option | Description |
---|---|
tpp5 or G5 | Optimizes for Intel® Pentium® and Pentium® with MMX™ technology processors. |
tpp6 or G6 | Optimizes for Intel® Pentium® Pro, Pentium® II and Pentium® III processors. |
tpp7 or G7 | Optimizes for Intel® Core™ Duo processors, Intel® Core™ Solo processors, Intel® Pentium® 4 processors, Intel® Xeon® processors, Intel® Pentium® M processors, and Intel® Pentium® 4 processors with Streaming SIMD Extensions 3 (SSE3) instruction support. |
On Intel® EM64T systems, only option tpp7 (Linux) or G7 (Windows) is valid.
These options always generate code that is backwards compatible with Intel processors of the same architecture. For example, code generated with the tpp7 or G7 option runs correctly on Pentium III processors, although performance may be faster on Pentium III processors when compiled using tpp6 (Linux) or G6 (Windows).
On Linux IA-32 systems, it is recommended you use option -mtune instead of the -tpp options.
Windows: /GB (an alternate for /G6;
this option is also deprecated)
Linux: None
In the following example, the compiled binary of the source program
prog.c
is optimized, by default, for Intel® Pentium® 4 processors, Intel® Xeon®
processors, Intel® Pentium® M processors, and Intel® Pentium® 4 processors
with Streaming SIMD Extensions 3 (SSE3). The same binary will also run
on Pentium, Pentium Pro, Pentium II, and Pentium III processors. All lines
in the code example are equivalent.
icc prog.c !
command on Linux
icc -tpp7 prog.c ! command on Linux
icl prog.c !
command on Windows
icl /G7 prog.c ! command on Windows
In the following example, the compiled binary is optimized for Pentium processors and Pentium processors with MMX technology:
icc -tpp5 prog.c !
command on Linux
icl /G5 prog.c ! command on Windows
mtune compiler option