investigation of tail calls on mainline

Fergus Henderson fjh@cs.mu.OZ.AU
Thu Dec 12 21:35:00 GMT 2002


On 12-Dec-2002, Brad Lucier <lucier@math.purdue.edu> wrote:
> MLton gave up on computed gotos a few years ago when there were still bugs in
> GCC's implementation, but may look at them again after I assured them that 
> computed gotos now work properly ;-).

Well, computed gotos may work properly, but the program that you attached
also made use of global register variables, and global register variables
don't work properly.  If you use global register variables, the GCC code
generator can (and sometimes does) throw up its hands whenever it gets
to anything complicated, e.g. an assignment statement.

-- 
Fergus Henderson <fjh@cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.



More information about the Gcc mailing list