Within a structure, items should be naturally aligned
structure1 struct
v32_1 dd ? ;offset 0
dd ? ;offset 4, padding
v64_1 dq ? ;offset 8
structure1 ends
Automatically aligned?
structure1 struct 8
v32_1 dd ? ;offset 0
v64_1 dq ? ;offset 8
structure1 ends
Should a structure pad the end to align 8?
structure2 struct 8
v64_1 dq ? ;offset 0
v32_1 dd ? ;offset 8
dd ?
structure2 ends
Does alignment only matter within a structure?
var1 dd ? ;.data? offset 0
str2 structure2 <> ;.data? offset 4 - str2.v64_1 not aligned to 8 - doesn't matter?