strict

Applies to C Applies to C++

Purpose

Turns off the aggressive optimizations that have the potential to alter the semantics of your program.

Syntax


Syntax Diagram

See also #pragma options.

Default

Notes

-qstrict turns off the following optimizations:

This option is only valid with -O2 or higher optimization levels.

-qstrict sets -qfloat=norsqrt.

-qnostrict sets -qfloat=rsqrt.

You can use -qfloat=rsqrt to override the -qstrict settings.

For example:

If there is a conflict between the options set with -qnostrict and -qfloat=options, the last option specified is recognized.

Example

To compile myprogram.C so that the aggressive optimizations of -O3 are turned off, and division by the result of a square root is replaced by multiplying by the reciprocal (-qfloat=rsqrt), enter:

xlc++ myprogram.C -O3 -qstrict -qfloat=rsqrt

Related References

Compiler Command Line Options
float
O, optimize
#pragma options IBM Copyright 2003