[fpc-devel] M68k: important milestone reached

Marco van de Voort marcov at stack.nl
Mon Feb 24 15:25:39 CET 2014


In our previous episode, Michael Schnell said:
> 
> A7 = Stack
> A6 = call frame (handle by LINK / UNLNK instructions
> D0, D1, A0, A1 can be modified by the called function
> D2, D3, D4, D5, D6, D7, A2, A3, A4, A5 need to be restored by the called 
> function
> all parameters are pushed to stack as 32 Bit values (some compilers 
> might allow for word parameters to be pushed as 16 Bit value, but I 
> don't use this), normal C-Call pushing order
> The stack is cleared up by the caller after the call

I can vaguely remembering some difference between Linux and NetBSD in the
registers used for return values. Maybe Pierre can still remember it.



More information about the fpc-devel mailing list