Restricting Optimizations

The following table lists options that restrict the ability of the Intel® compiler to optimize programs.

Linux* and Mac OS* X

Windows*

Effect

-O0

/Od

Disables all optimizations. Use this during development stages where fast compile times are desired.

Linux* and Mac OS* X:

Windows*:

  • Use /Od to disable all optimizations while specifying particular optimizations, such as: /Od /Ob1 (disables all optimizations, but only enables inlining)

For more information, see the following topic:

  • -O0 compiler option

-g

/Zi, /Z7

Generates symbolic debugging information in object files for use by debuggers.

This option enables or disables other compiler options depending on architecture and operating system; for more information about the behavior, see the following topic:

  • -g compiler option

-fmath-errno,
-fno-math-errno

No equivalent

Instructs the compiler to assume that the program tests errno after calls to math library functions.

For more information, see the following topic:

Diagnostic Options

Linux and Mac OS X

Windows

Effect

-sox

/Qsox

Instructs the compiler to save the compiler options and version number in the executable. During the linking process, the linker places information strings into the resulting executable. Slightly increases file size, but using this option can make identifying versions for regression issues much easier.

For more information, see the following topic:

  • -sox compiler option