[fpc-devel] Broken frac functionin FPC3.1.1 / Windows x86_64

J. Gareth Moreton gareth at moreton-family.com
Sun Apr 29 13:17:46 CEST 2018


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



More information about the fpc-devel mailing list