Recursive Functions (58)

41 Name: #!/usr/bin/anonymous : 2008-09-24 11:40 ID:Heaven

>>40

Now I know you're not telling me that you think "baz" is relevant because there is no such thing as a "stack allocated variable" in the C standards.

There is however, such a thing as a "stack allocated variable" in gcc. When we are talking about tail-recursion optimizations which are a feature of implementations of C, we are not talking of the C language itself.

Review >>33 where we had:

> All the good implementations implement tail calls without using the stack (if you enable optimizations)..

And >>34 disagreed. Not all good implementations implement tail call (elimination) in every possible case- or even every obviously possible case.

This thread has been closed. You cannot post in this thread any longer.