Darryl Gove's blog
-xalias_level in C and C++
The compiler flag -xalias_level takes various options, and specifies the amount of aliasing that the compiler should assume. For example -xalias_level=any (the default at optimisation levels below -fast) means that the compiler should assume that any pointers may alias (ie point to the same location in memory).
In Sun Studio the available levels have different names for C and C++. adopted the C levels for both C and C++. The following table shows the mapping between the C and C++ names:
| C | C++ |
|---|---|
| any | any |
| basic | simple |
| weak | N/A |
| layout | compatible |
| strict | N/A |
| std | N/A |
| strong | N/A |
Posted at 04:28PM Jan 24, 2008 by Darryl Gove in Sun |
