lkml.org 
[lkml]   [2003]   [Aug]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [OT] sizeof C types ...
On Mon, 25 Aug 2003 21:13:39 +0200 Herbert Pötzl <herbert@13thfloor.at> 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

--
~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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:48    [W:0.054 / U:1.380 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site