[fpc-devel] Stackframes

Ludo Brands ludo.brands at free.fr
Sat Aug 27 12:35:50 CEST 2011


In http://www.freepascal.org/docs-html/prog/progsu72.html#x78-770001.1.72 is
written:

...
the compiler will omit the generation of a stackframe if the following
conditions are satisfied:

    The procedure has no parameters. 
...

This condition should read: The procedure has no parameters on the stack.
Parameters passed in registers do not trigger stackframe generation.

There are a lot of wrapper functions, with register only parameters, in the
rtl and elsewhere that don't generate stack frames. 

Ludo 




More information about the fpc-devel mailing list