February 18, 2018

x86/x64 data size(char, short, int, long, float, double)


❑ Data size by data model(Unit : bit).
Data model Char Short Int Long Long Long Float Double Pointer
16 bit8161632ㆍ326416
LP32816163264326432
ILP32816323264326432
LP64816326464326464
ILP64816646464326464
LLP64816323264326464
SILP64864646464326464
  * LP32 : Long & Pointer is 32 bits.
  * LLP64 : Long Long & Pointer is 64 bits.
  * SILP64 : Short & Int & Long & Pointer is 64 bits.

❑ Applied OS by data model.
Data modelApplied OS
LP32MacOS X(x86), win-16
ILP32Windows(x86), Unix(x86)
LP64Typical Unix/Linux(x64), BSD, MacOS X(x64), Solaris
ILP64SPARC64
LLP64Windows(x64)
SILP32UNICOS