Code Optimization Options; Targeting A Processor (-Gn - Intel ARCHITECTURE IA-32 Reference Manual

Architecture optimization
Table of Contents

Advertisement

family. Vectorization, processor dispatch, inter-procedural optimization,
profile-guided optimization and OpenMP parallelism are all supported
by the Intel compilers and can significantly aid the performance of an
application.
The most general optimization options are
them enables a number of specific optimization options. In most cases,
is recommended over
-O2
expansion, which helps programs that have many calls to small
functions. The
concern. The
The
-Od (-O0 on Linux)
option enables more aggressive loop optimizations, most of which are
effective only in conjunction with processor-specific optimizations
described below.
All the command-line options are described in the Intel® C++
Compiler User's Guide. Further advice on optimizing applications with
the Intel compiler can be found in "Optimizing Applications with the
Intel® C++ and Fortran Compilers for Windows* and Linux*"
available at http://www.intel.com/software/products/compilers.

Code Optimization Options

This section describes specific options that may be used to optimize
your code and improve the performance of your application.

Targeting a Processor (-Gn)

Use
-Gn
maximum performance. Any of the
in your binary being optimized for corresponding Intel architecture
32-bit processors.
Pentium II and Pentium III processors.
-O1
may sometimes be preferred when code size is a
-01
option is on by default.
-O2
option disables all optimizations. The
to target an application to run on a specific processor for
-G6 (-tpp6 on Linux)
Application Performance Tools
,
-O1
-02
because the
option enables function
-O2
suboptions you choose results
-Gn
targets optimization for the
-G7 (-tpp7 on Linux) is the
A
and
. Each of
-O3
-03
A-3

Advertisement

Table of Contents
loading

Table of Contents