2 ms·
> just allocate memory by bumping the stack pointer and clear out everything at specific boundaries You've described region-based memory management, also known
by MaxBarraclough 6y ago
> just allocate memory by bumping the stack pointer and clear out everything at specific boundaries
You've described region-based memory management, also known as arena allocation. [0] This can indeed work nicely in short-lived applications like missile-guidance and even serious compilers. [1] It's not real garbage collection though.
[0] https://en.wikipedia.org/wiki/Region-based_memory_management https://en.wikipedia.org/wiki/Region-based_memory_management
[1] https://web.archive.org/web/20190126213344/https://www.drdobbs.com/cpp/increasing-compiler-speed-by-over-75/240158941 https://web.archive.org/web/20190126213344/https://www.drdob...