The -tpp{5|6|7} options optimize your application's performance for a specific Intel processor. The resulting binary will also run on the other processors listed in the table below. The Intel® C++ Compiler includes gcc*-compatible versions of the -tpp options. These options are listed in the gcc* Version column.
Option | gcc* Version | Optimizes for |
---|---|---|
-tpp5 | -mcpu=pentium | Intel® Pentium® processors |
-tpp6 | -mcpu=pentiumpro | Intel Pentium Pro, Intel Pentium II, and Intel Pentium III processors |
-tpp7 | -mcpu=pentium4 | Intel Pentium 4 processors |
Note
The -tpp7 option is ON by default when you invoke
icc or icpc.
The invocations listed below all result in a compiled binary optimized for Pentium 4 and Intel® Xeon(TM) processors. The same binary will also run on Pentium, Pentium Pro, Pentium II, and Pentium III processors.
prompt>icc prog.c
prompt>icc -tpp7 prog.c
prompt>icc -mcpu=pentium4 prog.c
The -tpp{1|2} options optimize your application's performance for a specific Intel® Itanium® processor. The resulting binary will also run on the processors listed in the table below. The Intel® C++ Compiler includes gcc*-compatible versions of the -tpp options. These options are listed in the gcc* Version column.
Option | gcc* Version | Optimizes for |
---|---|---|
-tpp1 | -mcpu=itanium | Itanium® processors |
-tpp2 | -mcpu=itanium2 | Itanium® 2 processors |
Note
The -tpp2 option is ON by default when you invoke
ecc or ecpc.
The invocations listed below all result in a compiled binary optimized for the Intel Itanium 2 processor. The same binary will also run on Intel Itanium processors.
prompt>ecc prog.c
prompt>ecc -tpp2 prog.c
prompt>ecc -mcpu=itanium2 prog.c