Linux系统32位与64位GCC编译器基本数据类型长度对照表
GCC 32位
sizeof(char)=1 sizeof(double)=8 sizeof(float)=4 sizeof(int)=4 sizeof(short)=2 sizeof(long)=4 sizeof(long long)=8 sizeof(long double)=12 sizeof(complex long double)=24 GCC 64位 sizeof(char)=1 sizeof(double)=8 sizeof(float)=4 sizeof(int)=4 sizeof(short)=2 sizeof(long)=8 sizeof(long long)=8 sizeof(long double)=16 sizeof(complex long double)=32 |
转载于:https://blog.51cto.com/laokaddk/608709