tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] casting bug?


From: Alexander Strasser
Subject: Re: [Tinycc-devel] casting bug?
Date: Tue, 12 Jul 2005 12:12:16 +0200
User-agent: Mutt/1.5.6+20040907i

Hi,

Henrik Nordstrom wrote:
> On Mon, 11 Jul 2005, Greg Haerr wrote:
> 
> >: For one thing, sizeof(void*) is much larger
> >: than sizeof(int) on the most common 64-bit architectures.
> >
> >Interesting discussion.  What's sizeof(void*) on these
> >common 64-bit architectures?
> 
> LP64 platforms commonly has
> 
> sizeof(void *) == 8
> sizeof(long long) == 8
> sizeof(long) == 8
> sizeof(int) == 4
> sizeof(short) == 2
> sizeof(char) == 1

  IIRC m$ decided to go with LLP64 model, meaning long stays 32bit.
Anyway i don't like neither of the choices, imho ILP64 would have
been the way to go...
  This no-guarantee-about-sizes-in-C thing begins to hurt nowadays ;)
Maybe it is really best to use special types like int_fast32_t
these times... (or role your own set of types to replace them
with the appropriate type depending on compiler and arch).

  Alex (beastd)




reply via email to

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