A teaching example of a very inefficient custom memory allocator. Current implementation uses fixed-size chunks of memory and for each chunk some metadata is stored(look at chunk struct in allocator.c
for more details`).
To play with it:
- Change code as you want in
example/usage_example.c
- Adjust parameters of
ALLOCATOR_MAX_SIZE_BYTES
andALLOCATOR_CHUNK_SIZE_BYTES
inallocator.c
- Execute
make
command