ansi-alias, Qansi-alias

Enable use of ANSI aliasing rules in optimizations.

IDE Equivalent

Windows: None

Linux: Language > Enable Use of ANSI Aliasing Rules in Optimizations

Mac OS X: Language > Enable ANSI Aliasing

Architectures

IA-32, Intel® 64 architectures

Syntax

Linux and Mac OS X:

-ansi-alias

-no-ansi-alias

Windows:

/Qansi-alias

/Qansi-alias-

Arguments

None

Default

-no-ansi-alias or /Qansi-alias-

Disable use of ANSI aliasing rules in optimizations.

Description

This option tells the compiler to assume that the program adheres to ISO C Standard aliasability rules.

If your program adheres to these rules, then this option allows the compiler to optimize more aggressively. If it doesn't adhere to these rules, then it can cause the compiler to generate incorrect code.

When you specify -ansi-alias or /Qansi-alias, the ansi-alias checker is enabled by default. To disable the ansi-alias checker, you must specify -no-ansi-alias-check (Linux and Mac OS X) or /Qansi-alias-check- (Windows).

Alternate Options

Linux and Mac OS X: -fstrict-aliasing

Windows: None

See Also


Submit feedback on this help topic

Copyright © 1996-2011, Intel Corporation. All rights reserved.