strict aliasing benefit examples
Robert Dewar
dewar@adacore.com
Wed Nov 29 18:58:00 GMT 2006
Richard Kenner wrote:
>> Since humans have to do a bit of alias analysis when maintaining
>> or writing code, the extra clarity of pulling things into temporary
>> variables isn't wasted.
>
> Sorry, I don't follow. Why should we want to do "a bit of alias analysis"
> when maintaining or writing code? It would seem a far better practice to
> leave that to the optimizer and use local variables only when necessary
> for clarify.
And while we are at it, write code in C, instead of some ill-defined
variant of it!
More information about the Gcc
mailing list