3 ms·
The GNU people call this "obstacks"; they are in the "iberty" library. (So named because it spells -liberty on a Unixy linker command line). https://gcc.gnu.or
by kazinator 10y ago
The GNU people call this "obstacks"; they are in the "iberty" library. (So named because it spells -liberty on a Unixy linker command line).
https://gcc.gnu.org/onlinedocs/libiberty/Obstacks.html https://gcc.gnu.org/onlinedocs/libiberty/Obstacks.html
Obstacks provide objects by drawing them from a linear piece of memory incrementally. Additionally, this is treated like a stack: you can free an object, but that also pops all objects allocated since that one.