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. 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, Intel Pentium M processors, and Intel Pentium 4 processor with Streaming SIMD Extensions 3 (SSE3) |
Note
The -tpp7 option is ON by default.
The following invocations all result in a compiled binary optimized for Pentium 4. The same binary will also run on Pentium, Pentium Pro, Pentium II, and Pentium III processors.
prompt>icpc prog.cpp
prompt>icpc -tpp7 prog.cpp
prompt>icpc -mcpu=pentium4 prog.cpp
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. 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.
The following invocations all result in a compiled binary optimized for the Intel Itanium 2 processor. The same binary will also run on Intel Itanium processors.
prompt>icpc prog.cpp
prompt>icpc -tpp2 prog.cpp
prompt>icpc -mcpu=itanium2 prog.cpp