Project code is written in C and uses malloc.c to implment best fit, worst fit, next fit, and first fit. This malloc.c file also:
- splits blocks
- grows the heap
- coalesces free blocks
- callocs
- reallocs
make
env LD_PRELOAD=lib/libmalloc-ff.so tests/test1
To run the other heap management schemes replace libmalloc-ff.so with the appropriate
library:
Best-Fit: libmalloc-bf.so
First-Fit: libmalloc-ff.so
Next-Fit: libmalloc-nf.so
Worst-Fit: libmalloc-wf.so