News for hackers. Stuff that matters.
Re:Show HN: Tiny C runtime Linux (rt0), HelloWorld 0.6k (i38... by koenigdavidmj on Monday October 12, 2015 @07:32PM (#10377485)
sbrk competes with mmap, not mprotect.

And yes, I would expect mmap to be used in most modern systems. OS X, for instance, just emulates sbrk with a large static buffer, and it has no actual effect on the page tables.

Re:Show HN: Tiny C runtime Linux (rt0), HelloWorld 0.6k (i38... by oso2k on Monday October 12, 2015 @07:37PM (#10377509)
Re:Show HN: Tiny C runtime Linux (rt0), HelloWorld 0.6k (i38... by duaneb on Monday October 12, 2015 @08:16PM (#10377700)
Updated, sorry, they almost seem like the same API to me—I've never used one without the other. I have no idea whether that's actually the case.