[fpc-devel] Stackframes
Michael Van Canneyt
michael at freepascal.org
Sat Aug 27 12:50:25 CEST 2011
On Sat, 27 Aug 2011, Ludo Brands wrote:
> 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.
If the compiler developers can confirm this, then I'll adapt the documentation.
Michael.
More information about the fpc-devel
mailing list