Invoking the Compiler from the Command Line
To open a command line window in Windows*, click Start>Programs>Intel(R)
Software Development Tools,
and choose the specific compiler you are using.
Use the keywords in the following table to invoke the specific compiler
you are using:
| To
invoke this compiler... |
Use
this keyword... |
| Windows* |
Linux* |
Notes |
| Intel® C++ Compiler (all architectures) |
icl |
icc | icpc |
Linux:
When you invoke the compiler with icc, the compiler builds
C source files using C libraries and C include files. If you
use icc with a C++ source file, it will be compiled as a C++
file. Use icc to link C object files.
When you invoke the compiler with icpc the compiler builds
C++ source files using C++ libraries and C++ include files.
If you use icpc with a C source file, it will be compiled
as a C++ file. Use icpc to link C++ object files. |
| Intel® Fortran Compiler (all architectures) |
ifort |
ifort |
|
|
Examples
The following examples show how to invoke the Intel C++ Compiler from
the command line using a single compiler optimization option.
Windows:
prompt>icl /O3 myprog.cpp
Linux:
prompt>icc -O3 myprog.cpp
Note: /O3 and other compiler optimization
options are explained later in this tutorial.
|