[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: strange behaviour of -O2 optimization



On Mon, Jan 05, 2004 at 07:03:55PM -0500, Daniel Jacobowitz wrote:
> On Tue, Jan 06, 2004 at 12:02:29AM +0100, Nicolas François wrote:
> > #define LOW_WORD(x) (word)(x)
> > #define HIGH_WORD(x) (*(((word *)&(x))+1))
> 
> You can't do this.  I recommend you google for "strict aliasing" for a
> number of good discussions of the problem.

Thank you Dan, I hadn't really understood what "strict aliasing" was.

Regards,
-- 
Nekral



Reply to: