chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] More on aliasing.


From: Peter Keller
Subject: Re: [Chicken-users] More on aliasing.
Date: Mon, 8 Jul 2002 11:41:05 -0500
User-agent: Mutt/1.2i

On Mon, Jul 08, 2002 at 10:00:50AM -0400, Anthony Carrico wrote:
> If you want this to work with the strict-aliasing optimization, you must
> use:
> 
> union foo_t
> {
>   void* ptr;
>   C_word integer;
> };
> 
> foo_t foo;
> 
> i = foo.integer;

However, it doesn't work if sizeof(void*) != sizeof(C_word) because
you'll lose information. That was my main point.

-pete



reply via email to

[Prev in Thread] Current Thread [Next in Thread]