Quantcast
Channel: Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1616

Intel® INDE 2015: Getting Started with the Compiler for OS X* Targets

$
0
0

Intel® Integrated Native Developer Experience 2015 with support for OS X* targets includes:

  • Intel® C++ Compiler
  • Intel® Integrated Performance Primitives
  • Intel® Threading Building Blocks

It allows you to compile C and C++ source files on OS X* operating systems for Intel® 64 architectures. Start using the tools from the Xcode* integrated development environment or from a command line.

The product has tutorials with step-by-step instructions and sample code that you can compile into an application using the Intel compiler.

If you need help getting started with this product, go to the Software Developer Support site where you can browse the knowledge base, ask user community experts, and get additional help from Intel.


Set the Environment Variables

Before you can use these tools, you must first set the environment variables by running the compiler environment script compilervars.sh or compilervars.csh with an argument that specifies the target architecture.

The following procedure uses the compilervars.sh script:

  1. Open a terminal session.

  2. Run the compiler environment script compilervars.sh:

    source <install-dir>/bin/compilervars.sh <arg>

    where <install-dir> is the directory structure containing the compiler /bin directory, and <arg> is one of the following architecture arguments:

    • intel64: Compilers and libraries for Intel® 64 architectures only

    • ia32: Compilers and libraries for IA-32 architectures only

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


Start from the Xcode* IDE

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 Add Build Rule in the lower-right corner of the project editor.

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

  4. Under Using, select ICLIntel® C++ Compiler XE 15.0.

  5. Select the target to be built under Targets.

  6. Select Product > Build.

For more information about using the compiler with the Xcode integrated development environment, see the Using Xcode* in the Getting Started section of the compiler documentation.


Start from the Command Line

Before you can use these tools, you must first set the environment variables as described above in Set the Environment Variables.

To invoke the Intel® C++ Compiler from the command line, open a terminal session and use a command similar to the following:

  • For C source files, use icl my_source_file.c

  • For C++ source files, use icl++ my_source_file.cpp

Following successful compilation, an executable is created in the current directory. 


Documentation and Resources

You can find documentation and samples using information in this table.

DocumentDescription
Samples

Intel® C++ Compiler Code Samples - https://software.intel.com/en-us/code-samples/intel-c-compiler

Samples for Intel® C++ Composer - https://software.intel.com/en-us/articles/samples-for-intelr-c-composer-xe

User and Reference Guide for Intel® C++ Compiler

This document shows you how to compile your application, how to optimize your application by using optimization tools and other libraries, and it describes all of the compiler options.

Read a summary of compiler options from the command line by invoking the compiler with the -help option.

Intel® Integrated Performance Primitives Documentation

This document contain a link to the reference guide for an extensive library of multicore-ready, highly-optimized software functions that you can use for multimedia data processing and communications applications.

Intel® Threading Building Blocks Documentation

The user and reference guides for a C++ template library that you can use to create reliable, portable and scalable parallel applications.

Release Notes

This document contains the most up-to-date information about the product:

  • Known issues and limitations

  • System requirements for installing the product

  • Technical support

Intel® Software Documentation Library

This is the online documentation library for Intel software products.


Use the Tutorials

These tutorials work with the supplied sample code to demonstrate important features in this edition.

TutorialDescription
Using Auto Vectorization

The auto-vectorizer detects operations in the application that can be done in parallel and converts sequential operations to parallel operations by using the Single Instruction Multiple Data (SIMD) instruction set.

In this tutorial, you will be introduced to using the auto-vectorizer to improve the performance of the sample code. You will compare the performance of the serial version and the version that was compiled with the auto-vectorizer.

Using Guided Auto Parallelism

Guided auto parallelism offers selective advice that you can implement in your application.

In this tutorial, you will be introduced to using guided auto parallelism by invoking the advice specified in the guided auto parallelism report. You will then see the performance difference between the serial version and the version that uses the advice provided by the guided auto parallelism feature.


Viewing all articles
Browse latest Browse all 1616

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>