Re:Show HN: Tiny C runtime Linux (rt0), HelloWorld 0.6k (i38...
by duaneb on Monday October 12, 2015 @08:22PM
(#10377717)
Yea, sbrk makes sense in a flat address space. I don't think it makes as much sense with virtual memory.
[ Parent
| on HN ]
Re:Show HN: Tiny C runtime Linux (rt0), HelloWorld 0.6k (i38...
by gull on Monday October 12, 2015 @08:56PM
(#10377827)
A flat address space is the future. You don't need virtual memory when a flat address space can hold all memory addresses for all processes as it does now with 64-bit processors.
Re:Show HN: Tiny C runtime Linux (rt0), HelloWorld 0.6k (i38...
by duaneb on Monday October 12, 2015 @09:43PM
(#10377986)
Virtual memory isn't just for giving each process enough space. It's for security reasons, too.
Re:Show HN: Tiny C runtime Linux (rt0), HelloWorld 0.6k (i38...
by oso2k on Tuesday October 13, 2015 @04:19PM
(#10383181)
Could you explain how virtual memory makes a process more secure? My intuition is that it would be another source of contention to manage (like CPU, RAM, IO, etc).
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.