[fpc-pascal] Recursion optimization by compiler

Bihar Anwar bihar_anwar at rocketmail.com
Fri Sep 3 13:12:31 CEST 2010

After my previous post, "TreeView and Nonrecursion", I'd tried to ask the same 
topics in stackoverflow.com 
and I got something new.

It is possible to recurse without using up the stack space.  Optimizing  
compilers are able to accomplish certain types of recursion into  efficient 
non-recursive loops, but the code has to be written into a tail recursion form.

Is there such a recursion optimization in FPC? If it is not enabled by default, 
how to enable it?


More information about the fpc-pascal mailing list