GNU Binutils 2.42 Released – CFI, AArch64, RISC-V Intel, s390x improvements
sourceware.org
sourceware.org
It won't stop the Aarch64 and RISC-V freight train though.
Because I really know that 32 regs are night and day while programming assembly.
16 registers is not awful, but for sure 32 gives a lot more flexibility. Amd64 has gotten by with 16 for 20 years, and 32 bit Arm for a long time. Also VAX and 68000 just a few years before Arm. But it's tight -- Arm32 and Amd64 on Windows only allow four function arguments to be passed in registers, six in the SysV ABI for Amd64. VAX and 68000 ABIs sadly and (really, unnecessarily) used the stack, leaving a lot of performance on the table.
I'm amused that the Intel 4004 in 1971 had 16 GPRs, plus accumulator, double the 8086 and more than double the 8008/8080. Narrower, of course.
AmigaOS uses registers for parameter passing on m68k.
a0/a1 and d0/d1 are scratch (and also the first to be used to pass or return pointers or values). The rest you're meant to preserve.
Atari TOS (probably inherited from CP/M for m68k) unfortunately uses the stack.
Any leads on that topic? Because I suspect the answers to be micro-architecture dependent and hidden deep in those abominations of llvm and gcc.