Optimizing (/O)
◄Up► ◄Contents► ◄Index► ◄Back►
─────Optimizing (/O)────────────────────────────────────────────────────────
The compiler performs some optimizations by default. You can use
the /O options to exercise greater control over the optimization
performed.
The /O (optimize) option controls optimization.
Syntax: /Oletters
Default: /Ox
The <letters> after /O alter the way the compiler optimizes your
code:
Character Optimizing Procedure
c Common subexpression elimination
d Disables optimization; leaves stack checking on
l Loop optimization
p Improves consistency of floating-point results
s Favors reduced code size
t Favors rapid execution
x Full optimization; equivalent to /Olt /Gs
More than one /O option may appear on a command line. All of the
options apply to all of the source-code files. FL processes the
options in the order in which they appear.
Giving /O without a letter is the same as /Ox. Whenever the
compiler has a choice between producing smaller (but slower) code
and larger (but faster) code, the compiler chooses to generate the
larger, faster code.
NOTE: When the debug option (/4Yb) is enabled, loop optimization
is disabled.
-♦-