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

Re: Tuple and changes for m68k with -malign-int



Hi Adrian,

On Sun, 18 May 2025 at 17:07, John Paul Adrian Glaubitz
<glaubitz@physik.fu-berlin.de> wrote:
> On Sun, 2025-05-18 at 16:39 +0200, Antonio Vargas Gonzalez wrote:
> > It correlates with the default in AmigaOS, which was originally
> > optimized to fit in 256K of RAM.
>
> AmigaOS doesn't use ELF though, it uses COFF. And Amiga Unix, which uses
> ELF, has a default alignment of 4 bytes as specified by the AT&T ABI.

Initially Linux didn't use ELF either, but a.out.
SunOS4 (based on BSD) did use 2-byte alignment on m68k, so I am still
surprised NetBSD didn't follow suit.
SunOS5 (based on SVR4) no longer supported m68k.

I expect (the history of) the gcc sources would tell you more about
the default alignment on other (legacy UNIX) OSes supporting m68k...

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds


Reply to: