tpp5, tpp6, tpp7, G5, G6, G7

Optimize application performance for IA-32 and IntelŪ EM64T processors.
These options have been deprecated.

IDE Equivalent

Windows: Optimization > Optimize For Intel(R) Processor
Linux: None

Architectures

IA-32, IntelŪ EM64T

Syntax

Linux: -tpp5
-tpp6
-tpp7
Windows:  /G5
/G6
/G7

Arguments

None

Default

-tpp7 or /G7 On IA-32 and IntelŪ EM64T systems, performance is optimized for IntelŪ PentiumŪ 4, IntelŪ Xeon™, IntelŪ PentiumŪ M processors, and IntelŪ PentiumŪ 4 processors with Streaming SIMD Extensions 3 (SSE3) instruction support.

Description

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Ū PentiumŪ 4, IntelŪ Xeon™, 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.

Alternate Options

Windows: /GB (an alternate for /G6; this option is also deprecated)
Linux: None

Example

In the following example, the compiled binary of the source program prog.f is optimized, by default, for Pentium 4, Intel Xeon, 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.

ifort prog.f
ifort -tpp7 prog.f   ! command on Linux
ifort /G7 prog.f     ! command on Windows

In the following example, the compiled binary is optimized for Pentium processors and Pentium processors with MMX technology:

ifort -tpp5 prog.f  ! command on Linux
ifort /G5 prog.f    ! command on Windows

See Also

mtune compiler option