[fpc-devel] Local procedures as procedural parameter
jonas at zeus.ugent.be
Wed Mar 16 15:00:20 CET 2005
On 14 mrt 2005, at 12:15, olle.r at automagika.se wrote:
> Example Powerpc with static link first:
> static link r3
> param no 1 r4
> param no 1 r3
> To avoid this problem, it would be better to have the static link last.
That won't work on x86 when the static link would be on the stack,
because there the callee removes the parameters from the stack (so if
it's a global function, it will remove sizeof(pointer) bytes too little
from the stack.
More information about the fpc-devel