Example memory layout 1
Memory objects and views in this example layout:
- Memo1
- Size: 8 pages
- Views:
- View1 (8 pages, 0 page offset)
- Memo2
- Size: 12 pages
- Views:
- View2a (12 pages, 0 page offset)
- View2b (8 pages, 1 page offset)
The relation of View2a and View2b (one hashmark is one page, dots are just spacing to visualize the gaps):
View2a: ############ View2b: .########...
The memory layout can look like this on a system with memory management:
+-------+-----------+-------------------------------------+ Physical | Memo1 | Memo2 | | +-------+-----------+-------------------------------------+ +----------+------+----------+-------+-----------+-----------+-------+ Virtual | |View2b| | View1 | | View2a | | +----------+------+----------+-------+-----------+-----------+-------+
The memory layout can look like this on a system without memory management:
+-------+-----------+-------------------------------------+ Physical | Memo1 | Memo2 | | +-------+-----------+-------------------------------------+ ^ ^^ | || | |+-- View2b starts here | +-- View2a starts here +-- View1 starts here
Author: Aron Barath, 2017