ILP32、ILP64、LP64、LLP64、64位系统

32、ILP64、LP64、LLP64、64位系统

Data Type ILP32 ILP64 LP64 LLP64
char 8 8 8 8
short 16 16 16 16
int 32 64 32 32
long 32 64 64 32
long long 64 64 64 64
pointer 32 64 64 64

在网上查资料,还看到一个LP32(long point 64)模型,就是int是16位的。
这个从来没有用到过。

绝大部分64位的Unix,linux都是使用的LP64模型;
64位的Windows使用的是LLP64(long long and point 64)模型。

另外,在网上看到一个资料:
float 都是4字节;
double 都是8字节;(C中直接写小数,默认是double型)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章