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

Re: Question on BIGGEST_ALIGNMENT in GCC on NetBSD/m68k



> On May 26, 2025, at 8:05 AM, John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> 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.

-- thorpej


Reply to: