Last change
on this file since 665 was 419, checked in by Nicholas Riley, 17 years ago |
Jgraph: Debian changes by pzn@…
|
File size:
1.1 KB
|
Rev | Line | |
---|
[419] | 1 | (* This is a picture of the sequential checkpointing algorithm. *)
|
---|
| 2 |
|
---|
| 3 | newgraph
|
---|
| 4 | xaxis min 0 max 3 size 2.5 nodraw
|
---|
| 5 | yaxis min 0 max 2.0 size 2 nodraw
|
---|
| 6 |
|
---|
| 7 |
|
---|
| 8 | newstring fontsize 7 hjc vjc x 0.25 y 0.3 : Code
|
---|
| 9 | copystring y 1.3 : Globals,\
|
---|
| 10 | Heap\
|
---|
| 11 | &\
|
---|
| 12 | Stack
|
---|
| 13 | newstring fontsize 9 hjc vjt x 0.25 y -0.07 : Address\
|
---|
| 14 | Space
|
---|
| 15 |
|
---|
| 16 | (* Draw the address space *)
|
---|
| 17 | newcurve fill 1 marktype ellipse marksize 0.2 1.4 pts 0.5 1.3
|
---|
| 18 | newcurve marktype box fill 1 marksize 0.5 2.0 pts 0.25 1
|
---|
| 19 | newline pts 0.0 0.6 0.5 0.6
|
---|
| 20 |
|
---|
| 21 | (* Draw the registers *)
|
---|
| 22 | shell : echo "0.7 0" | awk -f regs.awk
|
---|
| 23 | shell : echo "1.1 0" | awk -f regs.awk
|
---|
| 24 | shell : echo "1.5 0" | awk -f regs.awk
|
---|
| 25 | shell : echo "2.1 0" | awk -f regs.awk
|
---|
| 26 | newstring hjc vjc fontsize 7 x 1.95 y 0.3 : . . .
|
---|
| 27 | newstring fontsize 9 hjc vjt x 1.55 y -0.07 : CPU\
|
---|
| 28 | States
|
---|
| 29 |
|
---|
| 30 | (* Draw the disk *)
|
---|
| 31 | shell : echo "2.1 1.6" | awk -f disk.awk
|
---|
| 32 |
|
---|
| 33 | (* Draw the arrows to the disk *)
|
---|
| 34 |
|
---|
| 35 | newline rarrow asize .07 .04 pts 0.6 1.3 2.0 1.8
|
---|
| 36 |
|
---|
| 37 | newline rarrow asize .07 .04 pts 1.45 0.9 2.15 1.57
|
---|
| 38 | newline pts 1.0 0.6 1.45 0.9
|
---|
| 39 | newline pts 1.4 0.6 1.45 0.9
|
---|
| 40 | newline pts 1.5 0.6 1.45 0.9
|
---|
| 41 | newline pts 2.1 0.6 1.45 0.9
|
---|
Note:
See
TracBrowser
for help on using the repository browser.