[metafont] Re: [metapost] recursion in MP/ MF [was: all intersections between two paths]

Laurence Finston lfinsto1 at gwdg.de
Tue Jan 18 10:09:12 CET 2005


On Tue, 18 Jan 2005, Lars Engebretsen wrote:

> It could depend on the backend. I'm not an expert in SPARC
> assembler, but it seems that with that back end, the stack frame
> for the current recursive call is removed during the delay slot
> corresponding to the next recursive function call.
>
> I generated the assembler code with
>
> g++ -S -foptimize-sibling-calls testrcrs.cc
>
> using gcc 3.4.2.
>

Thanks for your answer.  Please excuse my obtuseness, but I don't
understand it.  Does this mean that the compiler is causing tail recursion
to be performed?  If so, is this disabled when you use the `-g' option?
Or does the problem lie with GDB?

Laurence



More information about the metapost mailing list