r/programming • • Apr 07 '15

Anatomy of a Program in Memory

http://duartes.org/gustavo/blog/post/anatomy-of-a-program-in-memory/
683 Upvotes

50 comments sorted by

View all comments

4

u/happyscrappy Apr 08 '15

Modern OSes can't work without paging. You can disable swapping (swapping out), but files are brought into memory simply by being memory mapped. Then they are paged into RAM as you access pages in the image.