Getting Started Guide

  • XX.XX
  • 12/16/2019
  • Public Content

Get Started with the Intel® C++ Compiler 19.1 for
Windows*

The Intel® C++ Compiler provides optimizations that help your applications to run faster Intel® 64
and IA-32
architectures, with support for the latest C and C++ language standards (including C++17). This compiler produces optimized code that can run significantly faster by taking advantage of the ever-increasing core count and vector register width in Intel® Xeon® processors and compatible processors. The Intel® Compiler will help you boost application performance through superior optimizations and Single Instruction Multiple Data (SIMD) vectorization, integration with Intel® Performance Libraries, and by leveraging the latest OpenMP* 5.0 parallel programming model.
Start using the compiler from the command line or within Microsoft Visual Studio*.
The Intel C++ Compiler is available as part of the following suites:

Before You Begin

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* 2019
  • Visual Studio* 2017
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. If you need to set the environment variables, run the environment script as described in the suite-specific Get Started documentation.
<install_dir>
is the installation directory. By default, it is
C:\Program Files (x86)\IntelSWTools
.

Option 1: Use the Command Line

Follow the steps below to invoke the compiler from within the Eclipse* CDT
Step 1: Open a command prompt.
On Windows 10
  1. Open the
    Start
    menu
  2. Select
    Compiler Command Prompt
    under Intel Parallel Studio XE 2020
On other versions of Windows*
  1. Open the
    Start
    menu
  2. Select
    Command prompt with Intel Compiler
    under
    Intel Parallel Studio XE 2020 > Compiler and Performance Libraries
  3. Select a build environment
Step 2: Invoke the compiler.
Use the command below to invoke the compiler from the command line:
  • icl [options...] inputfile(s) [/link link_options]
Use the command below to display all available compiler options:
  • icl/help

Option 2: Use Microsoft Visual Studio*

Follow the steps below to invoke the compiler from within Microsoft Visual Studio*.
Step 1: Build a binary:
  1. Launch Microsoft Visual Studio*
  2. Open an existing project or solution
  3. Right click on
    Project
    in
    Solution Explorer > Intel Compiler > Use Intel C++
  4. Select
    OK
  5. Select
    Build > Rebuild Solution
Step 2: Set build configurations.
  1. Right click on
    Project
    in
    Solution Explorer > Properties
  2. Locate C/C++ in the list and expand the heading
  3. Walk through the available properties to select your configuration
Switch to the Intel® C++ Compiler from the Microsoft Visual Studio* C++ Compiler
  1. Launch Microsoft Visual Studio* and open a solution or project
  2. Select
    Project > Intel Compiler > Use Intel C++
  3. Select
    OK
  4. Select
    Build > Rebuild Solution
Switch to the Microsoft Visual Studio* C++ Compiler from the Intel® C++ Compiler
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.
  1. Launch Microsoft Visual Studio* and open a solution or project
  2. Select
    Project > Intel Compiler > Use Intel Visual C++
To change the compiler version in Microsoft Visual Studio*, navigate to
Tools > Options > Intel Compilers and Tools > C++ > Compilers

Next Steps

Find More: Intel® C++ Compiler

Document
Description
The Developer Guide and Reference contains information on:
  • How to use the command line
    or Microsoft* Visual Studio*
  • Support for the latest compiler technologies and architectures.
  • Compiler reference material, including options, program structures, class and math libraries, and much more
Information on product installation, new and changed features, and issues that are not described in the product documentation.
This link takes you an archive of Intel® C++ Compiler release notes on the Intel® Developer Zone.
Find the latest code samples and product support. Learn specific compiler optimizations, features, tools, and programming concepts.
Software product documentation on the Intel® Developer Zone.
Other Help
You can access general help for compiler options after setting up the environment by entering
icl /help
at the command line.

Find More: Intel® Product Suites

Document
Description
The online training sites are an excellent resource for training on using the compiler in conjunction with your product suite.
Information on the product installation, new and changed features, and issues that are not described in the product documentation.
These links take you to the Intel® Developer Zone.
Code Samples and Tutorials
Code samples and corresponding tutorials. Learn specific compiler optimizations, features, tools, and programming concepts.
This document supplement contains information specific to Intel® System Studio.

Notices and Disclaimers

Intel, the Intel logo, Intel Atom, Intel Core, Intel Xeon Phi, VTune and Xeon are trademarks of Intel Corporation in the U.S. and/or other countries.
*Other names and brands may be claimed as the property of others.
Microsoft, Windows, and the Windows logo are trademarks, or registered trademarks of Microsoft Corporation in the United States and/or other countries.
© Intel Corporation.
This software and the related documents are Intel copyrighted materials, and your use of them is governed by the express license under which they were provided to you (
License
). Unless the License provides otherwise, you may not use, modify, copy, publish, distribute, disclose or transmit this software or the related documents without Intel's prior written permission.
This software and the related documents are provided as is, with no express or implied warranties, other than those that are expressly stated in the License.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804