Targeting ItaniumŪ Processors Automatically

The Intel compiler supports options that optimize application performance for processors based on IA-64 architecture.

Linux*

Windows*

Optimizes applications for...

-mtune=itanium2-p9000

/G2-p9000

Dual-Core IntelŪ  ItaniumŪ 2 processor (9000 series)

-mtune=itanium2

/G2

Default. ItaniumŪ 2 processors

-mtune=itanium

/G1

ItaniumŪ processors

Note

Mac OS* X: These options are not supported.

While the resulting executable is backward compatible, generated code is optimized for specific processors; therefore, code generated with -mtune=itanium2 (Linux) or /G2 (Windows) will run correctly on ItaniumŪ processors, but it might not run as fast as if it had been generated using -mtune=itanium (Linux) or /G1 (Windows).

For more information about the options listed in the table above, see the following topic:

The following examples demonstrate using the default options to target an ItaniumŪ 2 processor. The same binary will also run on ItaniumŪ processors.

Platform

Example

Linux

ifort -mtune=itanium2 prog.f90

Windows

ifort /G2 prog.f90