[Top][All Lists]

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

[Gnu-arch-users] Re: 64-bit cleaning [PATCH]

From: Miles Bader
Subject: [Gnu-arch-users] Re: 64-bit cleaning [PATCH]
Date: 07 Sep 2003 12:26:06 +0900

John Goerzen <address@hidden> writes:
> > sizeof(int) <= sizeof(void *) <= sizeof(long)
> >
> > but neither equality holds everywhere. Thus one can safely pass int
> > values around in void * and void * values in long.
> That is an interesting observation, though what it doesn't express is
> whether different platforms actually react positvely to passing things
> of different sizes along.

What does that mean?  I think in general on a sane system you can always
pass ints or pointers in a long, and be able to restore them later
without damage.

IIRC, an exception (and it is a big exception I suppose) is that on
64-bit platforms, Microsoft defines long as 32-bits and pointers as
64-bits.  Assholes.

I'd rather be consing.

reply via email to

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