Included Samples

The samples included with the Intel(R) C++ compiler 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. The sample sources contain the command line options and, where applicable, environment settings needed for compilation on Linux*, Mac OS* X, and Windows*.

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

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.

Vectorization vec_samples/

Illustrates loops that will and will not vectorize on specific architectures. These samples also illustrate using the vectorization reporting features.