Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That's because nothing is created. A function call is just putting some registers on the stack and jumping somewhere else. Stack growth etc. is typically handled implicitly by the OS (if a write on the stack pagefaults more stack memory is allocated).

Contrary to eg. an interpreter where a stack frame would usually be a real, dedicated object that is allocated when a frame is needed.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: