[Top][All Lists]
[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)
- [Tinycc-devel] casting bug?, charlesrandall4-tinycc, 2005/07/11
- Re: [Tinycc-devel] casting bug?, Felix Nawothnig, 2005/07/11
- Re: [Tinycc-devel] casting bug?, Dave Dodge, 2005/07/11
- Re: [Tinycc-devel] casting bug?, Felix Nawothnig, 2005/07/11
- Re: [Tinycc-devel] casting bug?, Dave Dodge, 2005/07/11
- Re: [Tinycc-devel] casting bug?, Greg Haerr, 2005/07/11
- Re: [Tinycc-devel] casting bug?, Henrik Nordstrom, 2005/07/11
- Re: [Tinycc-devel] casting bug?,
Alexander Strasser <=
- Re: [Tinycc-devel] casting bug?, Felix Nawothnig, 2005/07/12
- Re: [Tinycc-devel] casting bug?, Alexander Strasser, 2005/07/12
- Re: [Tinycc-devel] casting bug?, Felix Nawothnig, 2005/07/12
- Re: [Tinycc-devel] casting bug?, Alexander Strasser, 2005/07/12
- Re: [Tinycc-devel] casting bug?, Dave Dodge, 2005/07/12
- Re: [Tinycc-devel] casting bug?, Felix Nawothnig, 2005/07/12
- Re: [Tinycc-devel] casting bug?, Alexander Strasser, 2005/07/18
- Re: [Tinycc-devel] casting bug?, Dave Dodge, 2005/07/12
- Re: [Tinycc-devel] casting bug?, Dave Dodge, 2005/07/12
- Re: [Tinycc-devel] casting bug?, lepton, 2005/07/12