ILP32、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型)

原文地址:https://www.cnblogs.com/zhangdongsheng/p/9073754.html