DigiNews

Tech Watch by Johan Denoyer

← Back to articles

Why malloc is doing more than I asked for

Quality: 8/10 Relevance: 9/10

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.

🚀 Service construit par Johan Denoyer