Currently, the memory management statically pre-allocates a certain amount of "blocks"
Which is not efficient - we might need much less, or much more, and using a hard coded number does not make sense.
you can make a memory management mechanism without it.
try to find out how does the malloc and free functions work in C for inspiration.
Currently, the memory management statically pre-allocates a certain amount of "blocks" Which is not efficient - we might need much less, or much more, and using a hard coded number does not make sense. you can make a memory management mechanism without it. try to find out how does the malloc and free functions work in C for inspiration.