News for hackers. Stuff that matters.
Re:Checked C: extension to C that adds static and dynamic ch... by stochastic_monk on Thursday March 15, 2018 @09:52AM (#16592812)
There is a distinction between const and non-const static memory, though, in that the former can be stored in Read-Only Memory. Still, static memory is generally used for many fewer purposes than the stack or the heap, and if I understand correctly, sbrk is still working with the heap, just more manually.
Re:Checked C: extension to C that adds static and dynamic ch... by timClicks on Thursday March 15, 2018 @08:17PM (#16597652)
That's right. Allocators use the sbrk and mmap to manage the heap. IIRC high performance allocators tend to use mmap exclusively.