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

in a sense yes, but its not a realistic way to use the term.

what happens is that the stack is once dynamically allocated up-front when the thread is created and an index into that blob of memory is incremented and decremented as appropriate (stack pointer).

you can call that allocation, and it would be accurate but its not what i meant at all. it also avoids growing your memory consumption and doesn't impact memory budgets no matter how much stack you try and use (you will overflow it instead... and will need to allocate a bigger budget upfront for the stack with a compiler flag)



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

Search: