Developer Guide and Reference

Contents

O

Specifies the code optimization for applications.

Syntax

Linux:
-O
[
n
]
macOS:
-O
[
n
]
Windows:
/O
[
n
]
Arguments
n
Is the optimization level. Possible values are 1, 2, or 3. On Linux*
and
macOS*
systems, you can also specify 0.
Default
O2
Optimizes for code speed. This default may change depending on which other compiler options are specified. For details, see below.
Description
This option specifies the code optimization for applications.
Option
Description
O
(Linux*
and
macOS*
)
This is the same as specifying