[gclist] tail-calls in C/C++

Darius Blasband darius@phidani.be
Tue, 6 Aug 1996 11:39:52 +0200 (MET DST)


Fergus Henderson wrote:
> 
> Greg Morrisett, you wrote:
> > 
> > Why hasn't someone hacked gcc to do full tail-call elimination?
> 
> Because doing so requires modifying the machine-specific configuration
> files.  That makes it about 25 times more difficult than it would
> be if it could be done in a machine-independent way.
> 

I am no expert in gcc hacking. However, tail-call elimination sounds
interesting to me (YAFL code generation...) Since hacking seems expensive
and costly, is there any known way to perform it at a higher level ?

Regards,

Darius