-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. |