Prerequisites
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/compilervars.sh
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 |
---|---|
Samples | Online Intel® C++ Compiler code samples - https://software.intel.com/en-us/code-samples/intel-c-compiler 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. |
The Intel® Compiler documentation contains information on:
| |
Web Resources | |
Other help | You can access general help for compiler options by entering |