Follow these steps to invoke the Intel® C/C++ Compiler from the command line:
The compiler will always use the options set in icc.cfg. The icc.cfg is located in the [intelc-install-dir]/bin directory.
$ icc -O2 hello.c
Performance Tools for Software Developers - Invoking the compiler from the command line
For more complete information about compiler optimizations, see our Optimization Notice.