From: Joerg Wunsch <address@hidden>
As Paul Schlie wrote:
- ok, I accept that possibility; please correct my misunderstanding.
We basically implement the ABI you're suggesting.
- which is good, even if only by accident; but it needs to be documented
which subset of caller-saved registers are safe/prefered to use, if
desired, and are considered officially not available for asm code use.
While we do have a lot
of assembler files (I'm not particularly happy with the situation
either, e.g. fplib is rather hard to maintain), they follow the exact
same ABI as the C compiler, so I don't see any difference in that.
- almost, the compiler can/will avoid using compile-time declared reserved
global registers; asm routines can't, therefore must restrict their
their use in anticipation of the possibility, regardless if they're
used or not. (as in fact the ABI is actually somewhat soft, not hard)