This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: forcing tail/sibling call optimization
- To: bernds at redhat dot com, freitag at alancoxonachip dot com
- Subject: Re: forcing tail/sibling call optimization
- From: dewar at gnat dot com (Robert Dewar)
- Date: Mon, 27 Nov 2000 12:08:34 -0500 (EST)
- Cc: gcc at gcc dot gnu dot org, law at redhat dot com
<<IMHO we shouldn't encourage users to rely on gcc being able to optimize
tail calls. It's a nice optimization, but if a program relies on it for
correctness, that program is broken.
>>
That is certainly true in C, but it makes C useless as a target for the
kind of translation being considered here, where the "optimization" is
a fundamental requirement. The discussion on the above subject line,
is all about creating a variant language that WOULD have the required
semantic characteristics.