Why malloc is doing more than I asked for
Summary
This article provides a comprehensive look at how memory allocation works in C, covering malloc internals, alignment, padding, headers, back pointers, and fragmentation. It walks through implementing a simple bump allocator and evolving to a full allocator with free lists, splitting, and coalescing, including practical code snippets and debugging insights.