The Intel® C++ Compiler compiles C and C++ source files for Intel® 64 architecture.


Before you can use this tool, you must first set the environment variables by running the environment script. To run the script, enter one of the following from a BASH shell or a C shell:

  • BASH shell:

    $ . <install-dir>/bin/

  • C shell:

    $ source <install-dir>/bin/compilervars.csh

where <install-dir> is the top-level installation directory.

Using the Command Line

To invoke the compiler from the command line, use a command similar to the following:

  • For C source files: icc my_source_file.c

  • For C++ source files: icpc my_source_file.cpp

Following successful compilation, the compiler creates an executable file in the current directory.

Documentation and Resources

Document Description


Online Intel® C++ Compiler code samples -

Learn specific compiler optimizations, features, tools, and programming concepts.

Intel® C++ Compiler 16.0 User and Reference Guide Supplement for Intel® System Studio 2016

This document supplement contains information specific to Intel® System Studio.

User and Reference Guide for Intel® C++ Compiler 16.0

The Intel® Compiler documentation contains information on:

  • How to use the command line

  • Compiler reference material, including options, program structures, class and math libraries, and much more

Web Resources

Other help

You can access general help for compiler options by entering icc -help at the command line.

For more complete information about compiler optimizations, see our Optimization Notice.