atrribute 在结构体后面的应用
下面的结构体和普通的结构体的区别是什么???
struct test{
int shuju;
}_atrribute_((aligned(8)))
__attribute__((aligned(n))):此属性指定了指定类型的变量的最小对齐(以字节为单位)单位是8字节。
__attribute__不属于标准C语言,它是GCC对C语言的一个扩展用法
atrribute 在结构体后面的应用
下面的结构体和普通的结构体的区别是什么???
struct test{
int shuju;
}_atrribute_((aligned(8)))
__attribute__((aligned(n))):此属性指定了指定类型的变量的最小对齐(以字节为单位)单位是8字节。
__attribute__不属于标准C语言,它是GCC对C语言的一个扩展用法