[Top][All Lists]
[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
- [Chicken-users] More on aliasing., tonyg, 2002/07/05
- Re: [Chicken-users] More on aliasing., Peter Keller, 2002/07/05
- Re: [Chicken-users] More on aliasing., felix, 2002/07/05
- Re: [Chicken-users] More on aliasing., Peter Keller, 2002/07/05
- Re: [Chicken-users] More on aliasing., felix, 2002/07/08
- Re: [Chicken-users] More on aliasing., Anthony Carrico, 2002/07/08
- Re: [Chicken-users] More on aliasing.,
Peter Keller <=
- Re: [Chicken-users] More on aliasing., Anthony Carrico, 2002/07/08
- Re: [Chicken-users] More on aliasing., Peter Keller, 2002/07/08
- Re: [Chicken-users] More on aliasing., Anthony Carrico, 2002/07/08
- Re: [Chicken-users] More on aliasing., Peter Keller, 2002/07/08
- Re: [Chicken-users] More on aliasing., Anthony Carrico, 2002/07/08
- Re: [Chicken-users] More on aliasing., Anthony Carrico, 2002/07/08
- Re: [Chicken-users] More on aliasing., Peter Keller, 2002/07/08
- Re: [Chicken-users] More on aliasing., Peter Keller, 2002/07/08
- Re: [Chicken-users] More on aliasing., felix, 2002/07/09
- Re: [Chicken-users] More on aliasing., Peter Keller, 2002/07/09