That's great to hear! Glad to help. For functions with no stack frame, the compiler simply puts RET at the very end of the routine and is all that's needed. For functions with a stack frame, either LEAVE or MOV RSP, RBP; POP RBP must precede it. The optional parameter after RET is the number of bytes allocated to the stack by parameters that aren't in registers.
So what happens now? Do we submit a patch? Gareth aka. Kit _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel