Port-m68k archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Question on BIGGEST_ALIGNMENT in GCC on NetBSD/m68k



Hi Jason,

On Mon, 2025-05-26 at 11:25 -0700, Jason Thorpe wrote:
> > On May 26, 2025, at 8:05 AM, John Paul Adrian Glaubitz <glaubitz%physik.fu-berlin.de@localhost> wrote:
> > 
> > Now I'm wondering whether why some types on NetBSD such as double have 8 bytes
> > alignment on a 32-bit system. Does anyone know the reasoning for that?
> 
> Because that’s what is specified in the System V ABI for m68k.
> 
>      https://m680x0.github.io/ref/sysv-m68k-abi-part1.pdf
> 
> See Figure 3-1.  “double” and “long double” are explicitly 8-byte aligned.

OK, that clarifies it, thank you!

FWIW, I have scanned the whole SysV ABI specification in case someone needs it:

https://people.debian.org/~glaubitz/m68k-sysv-abi.pdf

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913


Home | Main Index | Thread Index | Old Index