Developer Guide and Reference

Contents

fast

Maximizes speed across the entire program.
This content is specific to C++; it does not apply to
DPC++
.

Syntax

Linux:
-fast
Windows:
/fast
Arguments
None
Default
OFF
The optimizations that maximize speed are not enabled.
Description
This option maximizes speed across the entire program.
It sets the following options:
  • On Windows* systems:
    /O3
    ,
    /Qipo
    ,
    /Qprec-div-
    ,
    /fp:fast=2
  • On Linux* systems:
    -ipo
    ,
    -O3
    ,
    -static
    ,
    -fp-model fast=2
For example:
  • On Linux* systems, if you specify option
    -fast -xSSE3
    , option
    -xSSE3
    takes effect.
  • On Windows* systems, if you specify option
    /fast /QxSSE3
    , option
    /QxSSE3
    takes effect.
Option
fast
sets some aggressive optimizations that may not be appropriate for all applications. The resulting executable may not run on processor types different from the one on which you compile. You should make sure that you understand the individual optimization options that are enabled by option
fast
.
Product and Performance Information
Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.
Notice revision #20201201
IDE Equivalent
None
Alternate Options
None

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.