The Intel® C++ Compiler compiles C and C++ source files for Intel® 64 architecture.

Start using the compiler from the command line or within Xcode*.

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 terminal session, run:

    source <install_dir>/bin/compilervars.sh intel64

    where <install_dir> is the directory structure containing the compiler /bin directory.

    The default path for <install_dir> is /opt/intel/

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 Xcode*

You must first create or choose an existing Xcode* project. These instructions assume you are using an existing project.

  1. Select the target you want to change and click Build Rules.

  2. Add a new rule by clicking a + button or using Editor > Add Build Rule.

  3. Under Process, select C source files or C++ source files depending on the source files.

  4. Under Using, select ICC Intel® C++ Compiler 19.0.

  5. Select the target to be built in the project editor under Targets.

  6. Select Product > Build.

Training and Documentation

Document Description

Online Training

The online training site is an excellent resource for training on using the compiler.

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.

Product Code Samples

Site with samples for Intel® software tools. Filter based on the tools you have installed to see the available samples.

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

The Intel® Compiler documentation contains information on:

  • How to use the command line or Xcode*

  • Support for technologies and architectures, including

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

Legal Information

 

Optimization Notice

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

 

Microsoft, Windows, and the Windows logo are trademarks, or registered trademarks of Microsoft Corporation in the United States and/or other countries.

Intel, the Intel logo, Intel Atom, Intel Core, Intel Cilk, Intel VTune, MMX, Pentium, Xeon, and Intel Xeon Phi 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.

Copyright 2012-2018 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.

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