Re:A bug story: data alignment on x86
by qb45 on Monday November 07, 2016 @03:05PM
(#12894514)
Must have been supported for a while because this stuff is even used in Linux:
http://lxr.free-electrons.com/source/include/linux/sysv_fs.h...
[ Parent
| on HN ]
Note the use of `packed`. `packed` causes the alignment to be set as small as possible (1 byte). The aligned(2) that follows then increases the alignment from 1 byte to 2 bytes.