[fpc-devel] Tail recursion optimization

Micha Nelissen micha at neli.hopto.org
Tue Oct 10 09:56:16 CEST 2006


Florian Klaempfl wrote:
> 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). It isn't enabled yet because it still
> needs some fine tuning. The question is however when should it be enabled? With
> -OoTAILREC? -O3? Something different?

It doesn't always improve performance ? It takes much more code ?

Micha



More information about the fpc-devel mailing list