logoalt Hacker News

fluoridationyesterday at 7:31 PM2 repliesview on HN

If it doesn't control both then TCO is impossible, because the stack will grow with each recursive step, as it's just performing a normal call.


Replies

ueckertoday at 7:00 AM

Have your mind blown: https://godbolt.org/z/xnn3PPxvW

show 1 reply
layer8today at 12:53 AM

It's possible for calling conventions where the callee is responsible for stack cleanup before return.