by wheelerof4te · 3y ago · 0 comments
It's possible to program in C without manual memory management.
"Static memory" is just a named reference to a memory location in the program data section.
[0] For more details, see e.g. https://nullprogram.com/blog/2019/10/27/
I was not suggesting that any of both is a good idea - but they are tools 'for programs where the amount of items you must store is only known at run time.' (Assuming that not having to free is considered "automatic memory management").
Of course you are right that it's not the same as using e.g. a Python List.
Usually it's not necessary to load everything into memory. It's usually more efficient to process data similar to map-reduce, and just use stdio and stdout
ldedit
I do not know if Linux or the BSDs have the same, or if it is even needed on those systems.