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 ItaniumŪ 2 processor 9000 series |
-tpp2 -mtune=itanium2 |
/G2 |
Default. ItaniumŪ 2 processors |
-tpp1 -mtune=itanium |
/G1 |
ItaniumŪ processors |
Mac OS*: These options are not supported.
While the resulting executable is backward compatible, generated code is optimized for a specific processors; therefore, code generated with -mtune=itanium2 or -tpp2 (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 or -tpp1 (Linux) or /G1 (Windows).
For more information about the options listed in the table above, see the following topic:
mtune, tpp1,tpp2,G1,G2, compiler options
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 |
icpc -mtune=itanium2 prog.cpp |
Windows |
icl /G2 prog.cpp |