[fpc-devel] Tail recursion optimization
Daniël Mantione
daniel.mantione at freepascal.org
Tue Oct 10 11:01:50 CEST 2006
Op Tue, 10 Oct 2006, schreef Vinzent Hoefler:
> On Tuesday 10 October 2006 08:29, Florian Klaempfl wrote:
> > Daniël Mantione wrote:
> > > Op Tue, 10 Oct 2006, schreef Florian Klaempfl:
> > >> Yesterday, I've implemented tail recursion optimization
> > >> (http://svn.freepascal.org/svn/fpc/trunk/compiler/opttail.pas
> > >> resulting in
> > >> http://www.hu.freepascal.org/fpcircbot/cgipastebin?msgid=158 pp11
> > >> is the new compiler, fpc11 the old, both are 2.1.1).
> > >
> > > Wow!
> >
> > Well, it's use for real world applications is limited
>
> Limited to what? Binary tree data structures only? ;)
Well, I think the answer is here that any programmer that focuses on
performance will already remove recursions manually. However, users
compare compilers using benchmarks, so having optimizations for those
makes sense.
Daniël
More information about the fpc-devel
mailing list