我在x86_64英特尔处理器上运行Debian。
gcc (Debian8.3.0)编译了以下程序
#include <stdio.h>
#include <stdalign.h>
#include <stddef.h>
int main(){
printf("%zd\n",alignof(max_align_t));
}和输出
16哪种数据类型需要16字节对齐?
发布于 2020-05-01 06:19:32
在x86_64上,_Alignof(long double)==16。
https://stackoverflow.com/questions/61531840
复制相似问题