logoalt Hacker News

fluoridationyesterday at 7:50 PM1 replyview on HN

Functional languages may be designed to support TCO from the ground up, up to supporting it across module boundaries. C is not like that, and calling into an external module necessarily grows the stack.


Replies

toast0yesterday at 8:05 PM

> C is not like that, and calling into an external module necessarily grows the stack.

This is because of the calling convention, yes? (and to some extent, if you want an accurate stack trace, but I find it acceptable that TCO also includes stack trace erasure)

show 1 reply