Re:Memory allocation for the curious
by oso2k on Monday September 18, 2017 @11:57PM
(#15281671)
Great post for learning.
I posted a similar test of sbrk() coding in my rt0 lib [0]. With less trivial examples, it's interesting to see how various addresses change as they're used to keep track of what the kernel is doing to the program's virtual address space.
I posted a similar test of sbrk() coding in my rt0 lib [0]. With less trivial examples, it's interesting to see how various addresses change as they're used to keep track of what the kernel is doing to the program's virtual address space.
[0] https://github.com/lpsantil/rt0/blob/master/t/sbrk.c