|
|
|
|
|
by emcrazyone
4219 days ago
|
|
The HN title doesn't match the article title "A Quick Tutorial on Implementing and Debugging Malloc, Free, Calloc, and Realloc" but from the article it is obviously C. The mentioning of sbrk in the article seems to do so in passing. Nothing describes what it is. I would spend time on it. I would also address virtual memory and at least let the reader know that the underlying operating system is ultimately responsible for allocating memory. When a modern OS uses virtual memory, you get a virtual memory pointer which would be different than the physical address. Linux, in particular, uses a process referred to as Optimistic Memory Allocation to honor malloc requests. I mention all this because I think anyone interested in these lower level details would also be interested in how the OS and hardware are involved. |
|