Restricting Optimizations

The following options restrict or preclude the compiler's ability to optimize your program:


Disables optimizations. Enables -fp option.


Turns off the default -O2 option and makes -O0 the default unless -O2 (or -O1 or -O3) is explicitly specified in the command line together with -g. See Optimizations and Debugging.


Restricts optimizations that cause some minor loss or gain of precision in floating-point arithmetic to maintain a declared level of precision and to ensure that floating-point arithmetic more nearly conforms to the ANSI and IEEE* standards. See -mp option for more details.


Disables inline expansion of intrinsic functions.

For more information on ways to restrict optimization, see Using -ip with -Qoption Specifiers.