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 sourcing the environment script using the initialization utility to initialize all the tools in one step:

  1. From a command prompt or script, cd to <install_dir>/parallel_studio_xe_2018.<update number>.<package number>\bin

    By default, <install_dir> is:

    • For root installations: /opt/intel

    • For non-root installations: $HOME/intel

  2. Enter source psxevars.sh or source psxevars.csh.

Using the Command Line

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

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

Start from the Eclipse* CDT

The Intel® C++ Compiler for Linux* 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:

  1. Start Eclipse*.

  2. Select Help > Install New Software.

  3. Next to the Work with field, click the Add button. The Add Site dialog opens.

  4. Click the Local button, and browse to <install_dir>/ide_support_2018/eclipse/compiler_xe.

    Note The default path for <install-dir> is /opt/intel/.

  5. Click OK.

  6. Deselect Group items by category.

  7. Select the options beginning with Intel, and click Next.

  8. Follow the installation instructions.

  9. 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*:

  1. Open your project.

  2. Select the project in the Project Explorer.

  3. Select Project > Build Project.

Training and Documentation

Document Description

Online Training

The online training site is an excellent resource for training on using the compiler: https://software.intel.com/en-us/c-compilers/ipsxe-support/training

Release Notes

Information on the product installation, new and changed features, and issues that are not described in the product documentation.

This link takes you to the Intel® Developer Zone.

Samples and Tutorials on the Intel® Developer Zone

Code samples and corresponding tutorials. Learn specific compiler optimizations, features, tools, and programming concepts.

Intel® C++ Compiler 18.0 Developer Guide and Reference on the Intel® Developer Zone

The Intel® Compiler documentation contains information on:

  • How to use the command line or the Eclipse* CDT

  • Support for technologies and architectures, including OpenMP*, Intel® Many Integrated Core Architecture (Intel® MIC Architecture), and Intel® Graphics Technology

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

Intel® Software Documentation Library

Software product documentation on the Intel® Developer Zone. Intel® System Studio is listed under Product Suites.

Other help

You can access general help for compiler options after setting up the environment by entering icc -help or man icc at the command line.