Re: [OT] sizeof C types ...

From: Herbert Pötzl
Date: Mon Aug 25 2003 - 14:43:08 EST


On Mon, Aug 25, 2003 at 12:29:06PM -0700, Randy.Dunlap wrote:
> On Mon, 25 Aug 2003 21:13:39 +0200 Herbert Pötzl <herbert@xxxxxxxxxxxx> wrote:
>
> |
> | Hi Everyone!
> |
> | this time not sooo off topic but ...
> |
> | anyway, ist there some kind of overview how
> | large the basic C types are on the different
> | architectures Linux runs on?
> |
> | char, short, int, long, long int, long long, ...
>
> >From gcc mailing list today: <quote>
>
> All GCC targets (except perhaps some specialized targets for certain DSPs
> and microcontrollers) support 64-bit integers.
>
> Almost all GCC targets are either "ILP32" or "LP64".
>
> For ILP32:
> short is 16 bits
> int, long, pointers are 32 bits
> "long long" is 64 bits
>
> For LP64:
> short is 16 bits
> int is 32 bits
> long, pointers, and "long long" are 64 bits
>
> None of this requires a specific version, as all these types have been
> around for a long time.
> </quote>
>
> Also see Ch. 10 of the LDD book:
> http://www.xml.com/ldd/chapter/book/ch10.html

ahh there is the tabular I was looking for ...

many thanks,
Herbert

> --
> ~Randy [mantra: Always include kernel version.]
> "Everything is relative."
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/