Intel® System Studio 2018: Getting Started with the Intel® C++ Compiler 18.0 for Windows*

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).

Start using the compiler from the command line or within Microsoft Visual Studio*.

Prerequisites

You must have a version of Microsoft Visual Studio* installed to use the compiler.

The compiler integrates into the following versions of Microsoft Visual Studio*:

  • Visual Studio* 2017

  • Visual Studio* 2015

  • Visual Studio* 2013

For full functionality within Visual Studio, including debugging and development, Visual Studio* Community Edition or higher is required. Visual Studio* Express Edition allows only command-line builds. For all versions, Microsoft C++ support must be selected as part of the Visual Studio install. For Visual Studio* 2015 and later, you must use a custom install to select this option.

You typically do not need to set the environment variables on Windows*, as the compiler command-line window sets these variables for you automatically. But if you need to set the environment variables, run the environment script as described in the edition-specific Getting Started documentation.

Using the Command Line

Follow these steps to invoke the compiler from the command line:

  1. Open a command prompt.

    • Windows 8.x and Windows 10

      Open the Start menu, and under the Intel System Studio 2018 product group, select a compiler command prompt.

    • Other versions of Windows*

      Open the Start menu and under Intel System Studio 2018 > Compiler and Performance Libraries > Command prompt with Intel Compiler, select a build environment.

  2. Invoke the compiler as follows:

    icl [options... ] inputfile(s) [/link link_options]

    Use the command icl /help to display all available compiler options.

Using Microsoft Visual Studio*

Building a Binary

To use the Intel® compiler:

  1. Launch Microsoft Visual Studio*.

  2. Open an existing project or solution.

  3. Select Project > Intel Compiler > Use Intel C++.

  4. Click OK in the Confirmation dialog box. This configures the solution to use the Intel® C++ Compiler.

  5. Select Build > Rebuild Solution.

The results of the compilation display in the Output window.

Setting Compiler Options

  1. Select Project > Properties. The Property Page for your solution appears.

  2. Locate C/C++ in the list and expand the heading.

  3. Step through the available properties to select your configuration.

Switching to the Microsoft Visual Studio* C++ Compiler

If you are using the Intel® C++ Compiler, you can switch to the Visual C++ Compiler at any time by doing the following:

  1. Launch Microsoft Visual Studio* and open a solution or project.

  2. Select Project > Intel Compiler > Use Visual C++.

This action updates the solution file to use the Microsoft Visual Studio C++ compiler. All configurations of affected projects are automatically cleaned unless you select Do not clean project(s). If you choose not to clean projects, you will need to rebuild updated projects to ensure all source files are compiled with the new compiler.

Switching to the Intel compiler

To switch to the Intel compiler:

  1. Launch Microsoft Visual Studio*, and open a solution or project.

  2. Select Project > Intel Compiler > Use Intel C++.

  3. Click OK in the Confirmation dialog box. This configures the solution to use the Intel C++ compiler.

  4. Select Build > Rebuild Solution.

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/intel-system-studio-support/training

Release Notes (Windows)

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 Supplement for Intel® System Studio 2018

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

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 Microsoft* Visual Studio*

  • 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 icl /help at the command line.

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