ifort, icc, icpc Recommended Compiler Options
Recommended compiler options for getting started with the Intel icc/icpc compilers.
Below is a rather short list of compiler options for the Intel icc and icpc compilers that should help most users to get started.
| -help |
prints a complete (but compact) list of compiler options |
| -o<file> | name output file |
| -O0 |
disable optimizations ==> Fast compilation |
| -O2 / -O |
enable optimizations (DEFAULT) |
| -O3 |
enable -O2 plus more aggressive optimizations that may not improve performance for all programs |
| -shared-intel |
removes the "warning: feupdateenv is not implemented and will always fail" |
Check the manual page, 'man icc/icpc', for more detailed information.
Take a look at the section Performance tuning for a few tips on getting started with optimization.

