The samples included with the Intel® compiler are designed to illustrate specific compiler optimizations, features, tools, and programming concepts.
Many of the samples are small source files intended to illustrate the associated concept in a general way. In addition to the build instructions included here, many of the samples contain the command line options and, where applicable, environment settings needed for compilation on the Linux*, Mac OS*, and Windows*.
Compiler Area |
Sample Description |
---|---|
Compiler Optimization |
Illustrates how to use the automatic compiler options to quickly change the performance of an application. Located in <install-dir>/samples/optimize/ |
Profile-guided Optimization |
Illustrates profiling an application, using the code-coverage and test-prioritization tools, and generating PGO compiler reports. Located in <install-dir>/samples/pgo_samples/ See PGO Sample. |
Interprocedural Optimization |
Illustrates using multi-file IPO compilation and generating IPO compiler reports. Located in <install-dir>/samples/ipo_samples/ See IPO Samples. |
Vectorization |
Illustrates loops that will and will not vectorize on specific architectures. These samples also illustrate using the vectorization reporting features. Located in <install-dir>/samples/vec_samples/ |
OpenMP* |
Illustrates using options that support OpenMP* and directives to create multi-threaded applications. Located in <install-dir>/samples/openmp_samples/ See OpenMP* Sample. |