Wednesday, July 18, 2012

Seems long long is always 64 bits, but who can say about int, from: http://www.ibm.com/developerworks/library/l-port64/index.html

The Linux 64-bit architecture

Unfortunately, the C programming language does not provide a mechanism for adding new fundamental data types. Thus, providing 64-bit addressing and integer arithmetic capabilities involves changing the bindings or mappings of the existing data types, or adding new data types to the language.


Table 1. 32-bit and 64-bit data models
  ILP32 LP64 LLP64 ILP64
char 8 8 8 8
short 16 16 16 16
int 32 32 32 64
long 32 64 32 64
long long 64 64 64 64
pointer 32 64 64 64

The most exhaustive handling of the topic that I found for multiple platforms, from: http://www.ibm.com/developerworks/library/l-port64/index.html

Cheers, 
Connie L. O'Dell 
Sr. Verification Specialist 
c.odell@co-consulting.net 
303-641-5191 
_____________________________________________ 
CO Consulting - Boulder, CO - http://co-consulting.net


No comments:

Post a Comment