This a simple implementation of malloc using the first fit algorithm. It's NOT PRODUCTION READY and was created just for academic purposes.
Please use Linux.
To compile the example on main.c just execute:
$ make
This file uses rlmalloc and rlfree to manager memory with some simple examples.
- Create better tests.
- Keep track of memory usage. (eg: zmalloc)
- Thread safety.
- Create statistics getters (eg: number of blocks).
- Benchmark.