【发布时间】:2012-10-30 10:42:08
【问题描述】:
可能重复:
GCC __attribute__((aligned(x)) explanation
What is meaning of the ‘_attribute_((aligned(4)));’ in the first line?
这两段代码是什么意思?特别是__attribute__ ((aligned(..))) 部分。
struct my_struct {
int64_t a;
int64_t b;
} __attribute__ ((aligned(16)));
和
struct my_struct2 { double arr[4] __attribute__((aligned(64))); };
【问题讨论】:
标签: c++ attributes alignment