3 ms·
Does Linux just map the executable into memory, and then let it load memory fault by memory fault? Or is the entire executable, or some large portion therof, l
by Animats 12y ago
Does Linux just map the executable into memory, and then let it load memory fault by memory fault? Or is the entire executable, or some large portion therof, loaded at startup?
- cfallin 12y agoThe loader mmap()s the file and it's demand-paged in.
- jbn 12y agoAs I commented there: http://garrett.damore.org/2014/09/modernizing-less.html http://garrett.damore.org/2014/09/modernizing-less.html what's worse is that BSS and data pages are faulted in, so just to startup the OS has to page in multiple times, just to read/write those globals that people love so much... It would be much much better to make no use whatsoever of globals (i.e. put everything on the stack in main() )...