Building a Simple Memory Allocator Using sbrk in C (Malloking Pt. 1)
Details about the Post Introduction Before diving into this article, I recommend reviewing the relevant chapters from Computer Systems: A Programmer’s Perspective (CSAPP), Chris Kanich’s lectures, and Operating Systems: Three Easy Pieces. These resources cover how memory allocation works and what happens under the hood when malloc is called. You’ll also want to understand the brk and sbrk system calls. Use any LLM if you’d like help parsing this material. this post is not a substitute for those references. ...