The cost of guaranteed tail call optimization is that you have to adopt the Pascal (callee side) convention for stack frame cleanup, so functions can’t reuse outgoing argument space. Does it matter in practice? Dunno.
I haven’t thought through that in detail, but it’s definitely not the C ABI anymore if you do that.
-
-
Ah, I see -- or maybe I don't. Weren't you saying proper TCO demands the Pascal convention (or something like it)? Which is of course not C ABI either.
-
Right, that’s what I mean. You have to do *something* different from the C calling convention. Does it matter? I dunno! Someone should test :)
- 4 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.