请教linux下的内存对齐和windows下的对齐方式?支持压缩是什么意思?
时间:2011-04-03
来源:互联网
struct test
{
char a;
int b;
double c;
}
在GCC下test 的大小是?,windows下的大小是??
struct test
{
double c;
char a;
int b;
}
在GCC下test 的大小是?,windows下的大小是??
结论是什么啊???
{
char a;
int b;
double c;
}
在GCC下test 的大小是?,windows下的大小是??
struct test
{
double c;
char a;
int b;
}
在GCC下test 的大小是?,windows下的大小是??
结论是什么啊???
作者: qq515383106 发布时间: 2011-04-03
The #pragma pack directive modifies the current alignment mode for only the members of structures whose declarations follow the directive. It does not affect the alignment of the structure directly, but by affecting the alignment of the members of the structure, it may affect the alignment of the overall structure according to the alignment mode.
你自己试一下就知道编译器default按什么方式对齐
你自己试一下就知道编译器default按什么方式对齐
作者: masterz 发布时间: 2011-04-03
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28