LP32 ILP32 LP64 LLP64 ILP64

LP32 ILP32 LP64 LLP64 ILP64 编译选项

Data Type ILP32 LP32 ILP64 LP64 LLP64
宏定义 _ _ _ LP64 LLP64
平台 Win32 API / Unix 和 Unix 类的系统 (Linux,Mac OS X) Win16 API   Unix 和 Unix 类的系统 (Linux,Mac OS X) Win64 API
char 8 8 8 8 8
short 16 16 16 16 16
int 32 32 64 32 32
long 32 32 64 64 32
long long 64 64 64 64 64
pointer 32 32 64 64 64


LP64指 long 和 pointer 是64位,

ILP64指 int,long,pointer 是64位,

LLP64指 long long 和pointer 是64位,

ILP32指int,long 和pointer 是32位,

LP32指long和pointer是32位。

原文地址:https://www.cnblogs.com/tongyishu/p/14063293.html