This is the mail archive of the
mailing list for the GCC project.
Re: forcing tail/sibling call optimization
- To: Robert Dewar <dewar at gnat dot com>
- Subject: Re: forcing tail/sibling call optimization
- From: Bernd Schmidt <bernds at redhat dot com>
- Date: Mon, 27 Nov 2000 17:14:40 +0000 (GMT)
- cc: freitag at alancoxonachip dot com, gcc at gcc dot gnu dot org, law at redhat dot com
On Mon, 27 Nov 2000, Robert Dewar wrote:
> <<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.
My point is that gcc may not be the best starting point for implementing
such a variant language.