Show HN: Tiny C runtime Linux (rt0), HelloWorld 0.6k (i386), sbrk example added
github.com
github.com
EDIT: Not trying to rain on anyone's parade, I think the syscall mentioned is beside the point of the post. :)
For me, however, I have a personal goal to show how to implement the basic newlib porting requirements [2].
Maybe you're considering non-sequential address space an improvement for security. That I could see. ASLR would be another, which, you can see the effect of by multiple runs of t/_end.exe in rt0.
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.
[0] https://books.google.com/books?id=K8vUkpOXhN4C&pg=PA950&lpg=...