On Thu, Feb 3, 2022 at 7:21 AM Didier Spezia <
didi...@gmail.com> wrote:
>
> It seems Aarch64 benefits more from the register-based ABI than x86_64.
> I don''t see really why. Does anyone have a clue?
My view is that the x86 architecture has fewer registers and has had a
massive decades-long investment in performance, so stack operations
are highly optimized in hardware, including things like forwarding
values stored in the stack by the caller to the retrieval from the
stack by the callee without waiting even for the memory cache. The
ARM architecture has more registers and has historically focused more
on power savings than on raw performance, so it has less optimization
on stack handling and benefits more from a smarter compiler.
In my experience testing compiler optimizations can be frustrating on
x86 because the hardware is just so good. Almost every other
processor architecture shows bigger benefits from compiler
optimizations.
Ian