The Intel® C++ Compiler compiles C and C++ source files for Intel® 64 and IA-32 architectures. You can also use the compiler to create applications targeting Intel® Many Integrated Core Architecture (Intel® MIC Architecture) and Intel® Graphics Technology.
Start using the compiler from the command line or within the Eclipse* C/C++ Development Toolkit (CDT).
Prerequisites
Before you can use this tool, you must first set the environment variables by running the environment script as described in the edition-specific Getting Started documentation.
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.
Start from the Eclipse* CDT
The Intel® C++ Compiler for Linux* OS provides integrations for the compiler to Eclipse* and CDT that let you develop, build, and debug your Intel® C/C++ projects in an integrated development environment (IDE).
Note: Eclipse* and CDT are not bundled with the compiler. You must obtain them separately.
You must first install and configure Eclipse* on your system and then configure Eclipse* to use the compiler. To install Eclipse*, refer to the Eclipse* documentation.
To configure Eclipse* to use the Intel compiler:
Start Eclipse*.
Select Help> Install New Software.
Next to the Work with field, click the Add button. The Add Site dialog opens.
Click the Local button, and browse to
<install_dir>/ide_support_2016/eclipse/compiler_xe
.Note The default path for
<install-dir>
is/opt/intel/
.Click OK.
Deselect Group items by category.
Select the options beginning with Intel, and click Next.
Follow the installation instructions.
When asked if you want to restart Eclipse*, select Yes.
When Eclipse* restarts, you can create and work with CDT* projects that use the compiler.
To invoke the compiler from Eclipse*:
Open your project.
Select the project in the Project Explorer.
Select Project> Build Project.
Documentation and Resources
Document | Description |
---|---|
Samples | Online Intel® C++ Compiler code samples - https://software.intel.com/en-us/code-samples/intel-c-compiler |
The Intel® Compiler documentation contains information on:
| |
Documentation for the Intel® C++ Compiler on the Intel® Developer Zone. | |
Other help | You can access general help for compiler options by entering |