Conformance Options

Option Description
-ansi Enables assumption of the program's ANSI conformance.
-ansi_alias[-] -ansi_alias directs the compiler to assume the following:
  • Arrays are not accessed out of bounds.
  • Pointers are not cast to non-pointer types, and vice-versa.
  • References to objects of two different scalar types cannot alias. For example, an object of type int cannot alias with an object of type float, or an object of type float cannot alias with an object of type double.

If your program satisfies the above conditions, setting the -ansi_alias flag will help the compiler better optimize the program. However, if your program does not satisfy one of the above conditions, the -ansi_alias flag may lead the compiler to generate incorrect code.

-mp Favors conformance to the ANSI C and IEEE 754 standards for floating-point arithmetic. Behavior for NaN comparisons does not conform.