Help! tail call elimination

Casey Cady caseyc@othala.pair.com
Thu Mar 9 10:07:00 GMT 2000


Unfortunately, AFAIK GCC doesn't support very many tail-call
optimizations.  I believe it will do tail recursion elimination, but
that's about it. (check out flow.c I think?).  Any compiler using Compaq's
GEM backend has better support for tail-call elimination, but that's
closed source.

Casey

On Thu, 9 Mar 2000, Peter [iso-8859-1] Nenzén wrote:

> Hi we're two Swedish students. We are working on a thesis about tailcall
> elimination (sibling calls) on the sparc32 architecture. We wonder if
> anyone has done something similar or has any code that could be to some
> assistance. There's no reason in inventing the wheel again :). 
> 
> We heard that there could be a solution for other architectures than
> sparc. We also heard that it might be "easy" to make some changes to it
> in order to get it to work for sparc. Any ideas and/or suggestions would
> be greatly appreciated.
> 
> Regards,
> Peter N and Anders R
> 



More information about the Gcc mailing list