Wednesday, July 18, 2012

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

This suggests that Redhat, if it is like "most Linuxes", still has a 32-bit int on the 64-bit OS.  (You could easily check it by writing a simple program that prints out sizeof int, or even print out "sizeof (state)" or whatever, sizeof seems to be broadly used in the data dumps in these programs.

http://en.wikipedia.org/wiki/64-bit

64-bit data models
Data modelshort (integer)intlong(integer)longlong pointers/size_tSample operating systems
LLP64/
IL32P64
163232 6464Microsoft Windows (X64/IA-64)
LP64/
I32LP64
16326464 64Most Unix and Unix-like systems, e.g. SolarisLinux, and Mac OS Xz/OS
ILP64166464 6464HAL Computer Systems port of Solaris to SPARC64
SILP64646464 6464Unicos

No comments:

Post a Comment