Code: Select all
Structure Test
a.b ; 1 byte
b.l ; 4 byte at offset 1
c.w ; 2 byte at offset 5
d.q ; 8 byte at offset 7
e.l ; 4 byte at offset 15
EndStructure
StructureC Test
a.b ; 1 byte
; 3 byte padding
b.l ; 4 byte at offset 4 (= 4*1)
c.w ; 2 byte at offset 8
; 6 byte padding
d.q ; 8 byte at offset 16 (= 8*2)
e.l ; 4 byte at offset 24
; 4 byte padding to fill the structure to size 32 (= 8*4)
EndStructureC
More information: http://en.wikipedia.org/wiki/Data_struc ... cts_on_x86