Displaying 1 result from an estimated 1 matches for "9ee71be9".
Did you mean:
9eb71b9
2020 Oct 03
2
Another tail call optimization question
Hello,
Could anyone kindly explain to me why the 'g()' in the following function
cannot have tail call optimization?
> void f(int* x);
> void g();
> void h(int v) {
> f(&v);
> g();
> }
>
A while ago I was taught that tail call optimization cannot apply if local
variables needs to be kept alive, but 'g()' doesn't seem to require
anything to be