Thread View: comp.std.c++
1 messages
1 total messages
Started by jgreen
Tue, 17 Oct 1995 02:25
More Re: Is the STL too authentic... ?
Author: jgreen
Date: Tue, 17 Oct 1995 02:25
Date: Tue, 17 Oct 1995 02:25
19 lines
1396 bytes
1396 bytes
While were at it it would be nice to have the compiler determine of
a function is tail recursive and create different code appropriately. It should
just reset the values in the stack instead allocating more space on the stack
if a function is returning the value of itself beeing called. There are a
few tricky things to do here, especialy with passing the parameters but I can
think of ways of handling this.
JonG.
The opinions expressed in this message are those of the author only,
and do not necessarily reflect the opinions of American Express.
[ moderator's note: Some compilers routinely eliminate tail recursion.
It gives astounding results on some benchmarks which attempt to
measure function-call performance. -sdc ]
[ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu.
Contact address: std-c++-request@ncar.ucar.edu. The moderation policy
is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads