This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Help! tail call elimination
- To: Peter Nenzén <qinxpen at ks dot ericsson dot se>
- Subject: Re: Help! tail call elimination
- From: Casey Cady <caseyc at othala dot pair dot com>
- Date: Thu, 9 Mar 2000 13:06:50 -0500 (EST)
- cc: gcc at gcc dot gnu dot org
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
>