-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvm-layout-32-dia.tex
33 lines (24 loc) · 1.05 KB
/
vm-layout-32-dia.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
%
% Diagram showing the layout of virtual memory
%
\begin{tikzpicture}
\newlength{\memwidth}
\setlength{\memwidth}{4cm}
\newlength{\yline}
\setlength{\yline}{6mm}
\tikzstyle{space}=[anchor=south west, text width=0.9\memwidth, text centered]
\draw (0,0) -- ++(0,12\yline)
-- ++(\memwidth,0)
-- ++(0,-12\yline)
-- cycle ;
\draw (0,12\yline) -- ++(\memwidth,0) node [anchor=west] { b000 0000 };
\draw (0,10\yline) node [space, minimum height=2\yline] { nursery space }
-- ++(\memwidth,0) node [anchor=west] { a000 0000 };
\draw (0,2\yline) node [space, minimum height=8\yline] { discontiguous
\\ spaces \\ (mark-sweep, non-moving, \ldots)} -- ++(\memwidth,0) node
[anchor=west] { 6800 0000 }; \draw (0,1\yline) node [space] { immortal space }
-- ++(\memwidth,0) node [anchor=west] { 6000 0000 };
\draw (0,0) node [space] { vm space }
-- ++(\memwidth,0) node [anchor=west] { 5300 0000
\hspace*{4ex} };
\end{tikzpicture}