2 ms·
> they just generally don't do it across procedures. They won't do it for extern (i.e. separately compiled) calls, because the ABI wouldn't really allow for an
by zozbot234 5y ago
> they just generally don't do it across procedures.
They won't do it for extern (i.e. separately compiled) calls, because the ABI wouldn't really allow for anything of the sort. But calls to static (or inline) procedures that only have visibility within a single source file can occur with arbitrary calling conventions, so the compiler is free to optimize register allocation across procedures.