Page MenuHomeFreeBSD

arch.7: correct claim about ILP32 alignment
ClosedPublic

Authored by brooks on Wed, Oct 1, 9:27 AM.
Tags
None
Referenced Files
F131988366: D52818.diff
Sun, Oct 12, 6:07 PM
Unknown Object (File)
Fri, Oct 10, 12:00 PM
Unknown Object (File)
Fri, Oct 10, 5:14 AM
Unknown Object (File)
Fri, Oct 10, 5:14 AM
Unknown Object (File)
Fri, Oct 10, 5:14 AM
Unknown Object (File)
Thu, Oct 9, 11:48 PM
Unknown Object (File)
Sun, Oct 5, 10:31 AM
Unknown Object (File)
Wed, Oct 1, 7:53 PM
Subscribers

Details

Summary

Only i386 lays out structures with weak (4-byte) alightment. It may be
that access works when weakly aligned, but from an ABI perspective, it's
all about struct layout.

Sponsored by: Innovate UK

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

brooks requested review of this revision.Wed, Oct 1, 9:27 AM

Is this true for 32-bit powerpc as well?

Is this true for 32-bit powerpc as well?

From what I could tell in compiler explorer, yes.

I guess there's also 32-bit MIPS in 13 still, and this doc claims to apply to 13.0 and later unless otherwise noted. But it doesn't matter as MIPS has already been removed from all of the individual tables.

This revision is now accepted and ready to land.Wed, Oct 1, 9:58 AM

I guess there's also 32-bit MIPS in 13 still, and this doc claims to apply to 13.0 and later unless otherwise noted. But it doesn't matter as MIPS has already been removed from all of the individual tables.

It's also the case that mips32 strongly aligns 64-bit types. i386 is the odd one out.

Is this true for 32-bit powerpc as well?

From what I could tell in compiler explorer, yes.

I looked at psABI, it is.

This revision was automatically updated to reflect the committed changes.