tpp1, tpp2, G1, G2

Optimizes application performance for IntelŪ ItaniumŪ processors.

IDE Equivalent

Windows: Optimization > Optimize For IntelŪ Processor
Linux: None

Architectures

IntelŪ ItaniumŪ architecture

Syntax

Linux: -tpp1
-tpp2
Windows:  /G1
/G2

Arguments

None

Default

-tpp2 or /G2 Performance is optimized for IntelŪ ItaniumŪ 2 processors.

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 Itanium architecture.

Option

Description

tpp1 or G1 Optimizes for IntelŪ ItaniumŪ processors.
tpp2 or G2 Optimizes for IntelŪ ItaniumŪ 2 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.

Alternate Options

None

Example

In the following example, the compiled binary of the source program prog.f 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.

ifort prog.f
ifort -tpp2 prog.f   ! command on Linux
ifort /G2 prog.f     ! command on Windows

In the following example, the compiled binary is optimized for the Itanium processor:

ifort -tpp1 prog.f   ! command on Linux
ifort /G1 prog.f     ! command on Windows