Re:On programming without malloc
by cpeterso on Thursday December 05, 2013 @12:14AM
(#6852820)
djb's qmail does almost exactly this! It works surprisingly well for short-lived forked processes.
[ Parent
| on HN ]
Cool, didn't know that! It's basically a degenerate pooled memory allocator. That one is a bit more clever in that it falls through to a proper malloc when it runs out of space. That's assuming, of course, that you have a proper malloc to fall through too.
Mine will eventually wrap around and clobber whatever's at 0x0. It assumes you have a very liberal page allocator in the background to handle page faults for whatever addresses you decide to point to and automatically wire them up to RAM.