Gast
#6687280
Hallo,
eine Frage an den Experten. Bezieht sich der folgende Ausdruck nur auf
den Start der Struktur oder auf jeden Member?
typedef struct attribute((aligned))
Internet:
struct S { short f[3]; } attribute ((aligned (8)));
"force the compiler to insure (as far as it can) that each variable
whose type is struct S will be allocated and aligned at least on a
8-byte boundary."
Aber wie verhält es sich in diesem Fall:
struct S { short f1[3];
short f2[3];} attribute ((aligned (8)));
Wo kommt f2 zu liegen? Wird innerhalb der Struktur auf das alignment
aufgefüllt oder nur am Ende?