development
A Programming Odyssey


ymalloc

A very simple implementation of a malloc-like function in C using POSIX sbrk() and a free list. Mostly built to briefly explore how memory allocations work.

Layout of Freelist in Heap for ymalloc Layout of Freelist in Heap for ymalloc

Credit

Credit to Marwan Burelle for the implementation details: A Malloc Tutorial.