forcing tail/sibling call optimization
Bernd Schmidt
bernds@redhat.com
Sun Nov 26 08:18:00 GMT 2000
On Mon, 27 Nov 2000, Fergus Henderson wrote:
> Implementation Advice:
> Implementations should implement tail call statements in such
> a way that all storage for the invocation of the calling
> function is reclaimed by the time execution transfers to the
> callee function.
>
> Implementation Requirements:
> Implementations shall issue a warning if there are any tail call
> statements for which the implementation is unable to follow
> the implementation advice.
Whether all storage can be reclaimed is potentially machine dependent.
This means that the warning will not be very useful; relying on it will
lead to nonportable code.
Bernd
More information about the Gcc
mailing list