Other than as an interesting intellectual exercise is there any reason to do this on a modern computer with Virtual memory?
Surely, once you get below page-size (e.g. 4K) you are just wasting memory that will get loaded anyway?
Surely, once you get below page-size (e.g. 4K) you are just wasting memory that will get loaded anyway?
Compile "Hello world" into an executable, and see how many kilobytes it takes on most architectures, despite the object file being a few bytes.
This thread pretty much responds to that. It is no 17000 lines, nor 17000K, it is just 142 bytes (other comments suggest it is 62).
But this was a genuine question rather than a put-down. I was hoping to have my assumption debunked.
EDIT: I have no idea why you're being down-voted seems unfair