Developer Guide and Reference

Contents

Using the Intel® C++ Compiler

Using the Intel® C++ Compiler within Microsoft Visual Studio*

  1. Create a Visual C++* project, or open an existing project.
  2. In
    Solution Explorer
    , select the project(s) to build with Intel® C++ Compiler.
  3. Open
    Project
    Properties
    .
  4. In the left pane, expand the
    Configuration Properties
    category and select the
    General
    property page.
  5. In the right pane, change the Platform Toolset to
    Intel C++ Compiler
    .
    Alternatively, you can change the toolset by selecting
    Project
    Intel Compiler
    Use Intel C++
    . This sets whichever version of the Intel® Compiler that you specify as the toolset for all supported platforms and configurations.
  6. To add options, go to
    Project
    Properties
    C/C++
    Command Line
    and add new options to the
    Additional Options
    field.
    Alternatively, you can select options from Intel specific properties. Refer to complete list of options in the Compiler Options section in this documentation.
  7. Rebuild, using either
    Build
    Project only
    Rebuild
    for a single project, or
    Build
    Rebuild Solution
    for a solution.

Verify Use of the Intel® C++ Compiler

To verify the use of the Intel C+ Compiler:
  1. Go to
    Project
    Properties
    C/C++
    General
    .
  2. Set
    Suppress Startup Banner
    to
    No
    . Click
    OK
    .
  3. Rebuild your application.
  4. Look at the
    Output
    window.
You should see a message similar to the following when using the Intel® C++ Compiler:
Intel(R) C++ Intel(R) 64 Compiler for applications running on XXXX, Version XX.
X
.
X
.
X

Unsupported Visual C++* Project Types

The following project types are not supported:
  • Class Library
  • CLR Console Application
  • CLR Empty Project
  • Windows* Forms Application
  • Windows* Forms Control Library

Tips for Ease of Use

  • Create a separate configuration for building with Intel® C++ Compiler:
    • After you have created your project and specified it as an Intel® C++ project, create a new configuration (for example, "
      rel_intelc
      " based on "
      Release
      " configuration or "
      debug_intelc
      " based on "
      Debug
      " configuration).
    • Add any special optimization options offered by Intel® C++ Compiler only to this new configuration (for example, "
      rel_intelc
      " or "
      debug_intelc
      ") through the project property page.
  • Build with Intel® C++ Compiler.

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