News for hackers. Stuff that matters.
Re:How do functions like alloca allocate memory from the stack? by OCTAGRAM on Tuesday August 18, 2026 @10:01AM (#49345784)
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.

There are no comments on this comment yet.