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

Developers should know that built-in stack is something like arena, aka dynamic region. And alloca() or VLA is using built-in stack as arena. If neither alloca() nor VLA is available, then additional arena can do the trick. Portable programs should have such fallback. Requires additional management for cleaning on exit, but that's it. I have seen malloc fallback in portable programs, but arena can be better.


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

Search: