Included Samples

The compiler samples included with Intel® C++ Composer XE are designed to illustrate specific compiler optimizations, features, tools, and programming concepts.

Many of the samples are small, single source files intended to illustrate the associated concept in a general way. Others are provided in .tar.gz files. Please ensure that any files used are copied or untarred into a writeable directory. The sample sources contain the command line options and, where applicable, environment settings needed for compilation on Linux*, OS X*, and Windows*.

Some of these samples are meant to illustrate features during compilation only and do not result in executables.

Samples are located in <install-dir>/composer_xe_2013.X.XXX/Samples/en_US/C++.

Compiler Feature

Location

Description

Automatic optimizations optimize/ Illustrates how to use the automatic compiler options to quickly change the performance of an application.
Profile-guide Optimization (PGO) pgo_samples/ Illustrates profiling an application, generating PGO compiler reports, and using the code-coverage and test-prioritization tools.
Interprocedural Optimization (IPO) ipo_samples/

Illustrates using multi-file IPO compilation and generating IPO compiler reports.

OpenMP* support openmp_samples/

Illustrates using OpenMP* pragmas to create multi-threaded applications.

Intriniscs intrinsic_samples/

Illustrates using several instruction intrinsics supported in the compiler.

Intel® Cilk™ Plus cilk_samples/

Illustrates parallel processing techniques using Intel® Cilk™ Plus.

Vectorization vec_samples/

Files for use with "Getting Started with the Intel® C++ Composer XE 2013 for Linux* OS -> Using Auto-vectorization"

Parallelization tachyon.tar.gz

Project for use with "Getting Started with the Intel® C++ Composer XE 2013 for Linux* OS -> Threading Your Applications"

Guided Auto Parallel guided_auto_parallel.tar.gz

Files for use with "Getting Started with the Intel® C++ Composer XE 2013 for Linux* OS -> Using Guided Auto Parallelism"

Intel® Many Integrated Core Architecture (Intel® MIC) mic_samples/LEO_tutorial/

Files for use with "Getting Started with the Intel® C++ Composer XE 2013 for Linux* OS -> Using the Intel® MIC Architecture"

Offload pragma for Intel® MIC mic_samples/intro_sampleC/

Illustrates introductory level offload pragma uses with scalars, named arrays, and pointers. Use of alloc_if, if clause, __MIC__, OpenMP*, function calls within the offload region, copyable structs, and multiple coprocessors.

Keywords _Cilk_shared and _Cilk_offload in C for Intel® MIC mic_samples/shrd_sampleC/

Illustrates the offload extension keywords _Cilk_shared and _Cilk_offload within C. Use of shared scalars, arrays, functions, structs, string allocation on target, OpenMP*, shared malloc API, pointer return, multiple coprocessors, and Intel® Cilk™ Plus language extensions.

Keywords _Cilk_shared and _Cilk_offload in C++ for Intel® MIC mic_samples/shrd_sampleCPP/

Illustrates the offload extension keywords _Cilk_shared and _Cilk_offload within C++. Shared class member field/function access, member of different types, single/multiple class inheritance, shared malloc API, passing pointer to/address of shared class object, shared class static field member test, marking code region _Cilk_shared, shared class with virtual function member and virtual function member with single/multiple class inheritance, and a link list example.

 

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 regardīng the specific instruction sets covered by this notice.

Notice revision #20110804

 

Copyright © 2012 Intel Corporation. All Rights Reserved

* Other names and brands may be claimed as the property of others