16

Memory management

In Chapter 15 we saw how the cache provides fast access to those portions of main memory that are likely to be needed in the near future. In this chapter, we regard the main memory as a form of cache for the hard disk store. That is, we shall use the main memory as a store for those portions of the disk store that are likely to be needed in the near future. This will allow us to execute a program even though not all the program code and data can fit into the main memory of the computer. In turn, this will allow us to store parts of a number of programs within the main memory and be able to run any of them.

16.1 Virtual and physical addresses – imaginary and real memory

The original idea1 was to allow a program to use the ...

Get Embedded Systems and Computer Architecture now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.