On Mon, Jul 29, 2013 at 12:34:00PM -0600, Warner Losh wrote:
> 
> On Jul 29, 2013, at 11:58 AM, Hans Petter Selasky wrote:
> 
> > The aligned will make sure that the structure gets padded properly to the 
> > size specified. Only on ARM/MIPS etc, structures get automatically aligned 
> > according to the element in the structure requiring the greatest alignment.
> 
> I'd turn this around and say only on x86 do structures not get aligned this 
> way. On any riscy architecture, unaligned accesses are expensive, which is 
> why the ABI there mandates this.
> 
The alignment of the structure to the largest alignment of the member is
required by the ABIs on i386 and amd64 as well.

Attachment: pgp8C63eUZqgf.pgp
Description: PGP signature



Reply via email to