diff options
Diffstat (limited to 'design')
| -rw-r--r-- | design/README.md | 70 | ||||
| -rw-r--r-- | design/mock/29-intro-bytes.png | bin | 0 -> 83086 bytes | |||
| -rw-r--r-- | design/mock/29-intro-bytes.svg | 145 | ||||
| -rw-r--r-- | design/mock/30-intro-words.png | bin | 0 -> 224784 bytes | |||
| -rw-r--r-- | design/mock/30-intro-words.svg | 246 | ||||
| -rw-r--r-- | design/mock/31-intro-stack.png | bin | 0 -> 144165 bytes | |||
| -rw-r--r-- | design/mock/31-intro-stack.svg | 207 | ||||
| -rw-r--r-- | design/mock/32-intro-code.png | bin | 0 -> 104319 bytes | |||
| -rw-r--r-- | design/mock/32-intro-code.svg | 155 | ||||
| -rw-r--r-- | design/mock/33-aligned-480.png | bin | 0 -> 18796 bytes | |||
| -rw-r--r-- | design/mock/33-aligned.png | bin | 0 -> 135867 bytes | |||
| -rw-r--r-- | design/mock/33-aligned.svg | 198 | ||||
| -rw-r--r-- | design/mock/intro.py | 217 | ||||
| -rw-r--r-- | design/motion.md | 54 |
14 files changed, 1291 insertions, 1 deletions
diff --git a/design/README.md b/design/README.md index 9bae30b..ffbb820 100644 --- a/design/README.md +++ b/design/README.md @@ -84,6 +84,8 @@ this table. | | [`projection`](#4-ties) | these bytes are that part of the drawing | for a step | | | [`echo`](#4-ties) | the same mark in two panels at once | for a step | | 5 frame | [`stage`](#5-the-frame) | the working frame: the band and the two columns | split `none`, `beside`, `subject` | +| | [`segments`](#segments) | the process's address space, its mappings a row each | the ink's source; a mapping framed when a word is inked | +| | [`aligned`](#aligned) | the source and the disassembly side by side, each line level with its code | a split a scene chooses | | | [`pair`](#pair) | two runs of one program against each other, a seam between them | `only here`, `differs`; the shadow on an ASan run's stack | | | [`map`](#the-map-and-the-minimap) | the working frame unfolded, every panel whole: 3840 by 2160 | the key | | | [`minimap`](#the-map-and-the-minimap) | the map at a twentieth, in the working frame's corner | windows, marks, `flash` | @@ -94,6 +96,7 @@ this table. | 6 verb | [`fire` `arm` `strike` `cool` `read` `extend` `link` `project` `travel` `advance`](#6-verbs) | what one block does | | | | [`open` `close`](#6-verbs) | what a loupe does | | | | [`descend` `cross` `ascend`](#6-verbs) | what a descent does: a call followed down, a system call, a return | | +| | [`regroup` `ink` `column` `frame up` `decode` `align`](#6-verbs) | what building a view does (the introduction) | | | | [`leave` `turn` `spread` `gather`](#6-verbs) | what a graph does: a block left by an edge, a loop's turn, rows into blocks and back | | | | [`dive` `surface` `flash`](#6-verbs) | between the map and the working frame | | | | [`cascade` `continue` `run` `sprint` `establish` `scroll` `relayout` `visit` `say`](#6-verbs) | what a frame does | | @@ -1316,6 +1319,48 @@ What stays, and why: a tree down, the far view's time left to right, a loupe hung under its pointer. None goes against the rules. +### segments + +The process's address space, which is where the inks come from: a panel +of its mappings as the recording has them, low addresses on top, a row +each. A bar 8 wide in the mapping's ink, its first address, its file or +name (`list`, `heap`, `libc.so.6`, `[vdso]`, `[stack]`), what it is (code, +read-only data, data, malloc's, the stack: from its permissions), its +size ranged right (`4 KiB`, `1.5 MiB`). Rows, not a scale: the code and +the stack are 127 TiB apart, and a hole between mappings is one row, a +faint zig-zag and its size (`nothing mapped · 127 TiB`). When a word takes +its ink, the mapping it points into is framed as read with it (an +`echo`). It is the legend's long form: the registers' tag carries its +inks in short; the title card's legend and the map's key draw this panel. +It is not the far view (mock 8), which is time over pages; the far view +can stand on it as its axis. Mock 30. + +### aligned + +The source and the disassembly side by side, a table in address order: +each source line level with the first row of its instructions, a quiet +bracket by the gutter from the line down its run's last row. A line whose +code comes in several runs (a `for`'s test and step, a `while` tested +before and after its body, code the compiler moved) is drawn at its first +run and repeated faint at each other; a line with no code of its own is +not drawn, and the gap in the numbers says so (the scene's caption may); +instructions of no line (padding, another function without source) have +the function's name beside them, faint. The pc's row and its line are one +band across both columns and the gutter: the alignment is the thread, so +no thread is drawn. A call followed down puts the callee's lines beside +the callee's rows, under the caller's waiting call (the `descent`, both +columns at once). + +It is a split a scene chooses, and the default nowhere: the program +column becomes the source (left, 880) and the state column the +disassembly (right, 880), the band and the registers and stack giving way +for as long as it lasts. Across the gutter is "the same thing one level +down", as in the band; down is still deeper in each column. Reach for it +to teach what a line compiles to, in the introduction, and in a pair (the +source in the middle, 586 wide, each build's rows aligned to it on its +side). The two columns scroll as one. `align` and `stack` change between +it and the stacked form. Mocks 32 and 33. + ### pair Two runs of one program seen against each other: two builds (plain and @@ -1492,6 +1537,12 @@ Frames at 60 a second. `s` is the frame a strike lands. Curves: | `leave` | a block of a graph, along an edge | 0 to 12 fire on its last row; a conditional's compare row has its chips framed as read (18 to 24): the cause; 24 to 42 the edge it takes draws gold (3 units) from the port to the target, head first, `standard`; then the mark travels it: the gold plaque leaves the row along the edge, `glide`, 12 f and 2 f a 100 units, 30 f at most, the row cooling to the trail as it goes; it lands on the target's first row (the advance) and 6 f after, the target's count is armed and struck; with the landing the oldest of the three trail edges cools to `dim` (18 f). A fall-through leaves the same way. At a walk, 1.5 s | | `turn` | a loop's back edge | `leave` along the lane: out of the bottom, out to the lane, up it, in at the header's head; the lane's count struck as the mark goes in | | `spread` | the rows into a graph (on the map, or in a `dive` or `surface` between a graph and the working frame's rows) | 0 to 36 every row glides from its place in the column to its place in its block, `glide`, the blocks 4 f apart in layer order; nothing fades while rows travel; 36 to 48 the blocks' frames and heads fade in round them; 48 to 72 the edges draw, layer by layer, 2 f apart, 12 f each. `gather` is the reverse: edges out (12 f), frames and heads out (12 f), then the rows glide home (36 f) | +| `regroup` | bytes into a word (the introduction) | the eight bytes of a word slide together and reverse in place, the low byte to the right (24 f, `glide`), the spaces between them closing; the word's digits fade in over them as they land (12 f), the bytes staying behind, faint, for the rest of the beat. The first walked, the rest at a run (8 f each) | +| `ink` | a word becoming an address | its digits go from primary to its region's ink (12 f), and the mapping it points into in `segments` is framed as read (6 f): an echo, no line | +| `column` | rows gaining a column (offsets, roles, pins, lines) | the rows make room (18 f, as rows do), then the column's values fade in top down, 2 f apart, 12 f each | +| `frame up` | a panel arriving round rows already built | its rule draws round them (12 f), then its tag fades in (12 f): the last thing, never the first | +| `decode` | an instruction's bytes becoming its row | the bytes of one instruction gather (12 f), the mnemonic and operands fade in beside them (12 f), and the bytes dim; the row then travels to its place (`glide`, 24 f) | +| `align` | the stacked program column to `aligned`, and back (`stack`) | the band and the state column fade out (12 f); the disassembly glides from under the source to beside it (36 f, `glide`); then the source's lines glide apart to their instructions' rows (24 f, rows making room) and the run brackets fade in (12 f). `stack` is the reverse | | `arc` | a pointer to a row of its panel | written: with the arm (s−12) the old arc goes dashed; from s+6 it fades (12 f) while the new one draws from the pointer's row along its lane to the target, head first, 12 f, `standard`, at full ink; with the cool at the advance it quiets to standing (24 f). Read: to full ink with the read (6 f), back with the advance. Overwritten with a target off the panel or NULL: it fades from s+6 (12 f). A lane change glides 12 f. Scrolled: it rides its rows, fading as its target leaves. At a run 8 f, at a sprint none | | `advance` | the current marks | last. The thread, the plaques and rip move together: 12 f to an adjacent row, 24 f up to eight rows, `standard`; farther, out and in over 6 f. A taken jump's line draws in the jump lane with it | | `cascade` | a step | `fire` (12); then its effects a level at a time, 18 f apart: CPU (`reg`s, the pc's annotation), memory (`slot`s, `bytes`), the idea (the drawing, by `project`); each armed, then struck; hold 36 f after the last strike and 12 f a further value, 84 at most; `advance`; rest 24 f. A level with nothing on screen to change gives up its slot | @@ -1595,6 +1646,7 @@ resvg 17-operands.svg 17-operands.png python3 -B heap.py && for n in 18-heap 18-heap-free; do resvg $n.svg $n.png && resvg -w 480 $n.svg $n-480.png; done python3 -B graph.py && for n in 22-graph-sort 23-graph-open 24-graph-strip 25-blocks-lens; do resvg $n.svg $n.png; done python3 -B pair.py && for n in 26-pair-rest 27-pair-store 28-pair-part; do resvg $n.svg $n.png && resvg -w 480 $n.svg $n-480.png; done +python3 -B intro.py && for n in 29-intro-bytes 30-intro-words 31-intro-stack 32-intro-code 33-aligned; do resvg $n.svg $n.png; done python3 -B dense.py && resvg 15-marks.svg 15-marks.png python3 -B map.py && for n in 09-context 10-context-step 11-context-lens 21-loupe 19-map; do resvg $n.svg $n.png && resvg -w 480 $n.svg $n-480.png; done # 20-dive.png it composes itself @@ -1625,6 +1677,11 @@ python3 -B gen.py # 1 to 8, then resvg the same way | [26](mock/26-pair-rest.png) | the `pair` at the loop, i = 15: plain and ASan builds of `overflow.c` | the shared source with each run's mark on its side; two disassemblies aligned by line, ASan's `only here` rows; the line's registers; plain's stack with the red zone's `buf` and `i`, ASan's fake frame with its shadow on each word's row, `buf` facing `buf`, the saved rbp facing the redzone (`differs`) | | [27](mock/27-pair-store.png) | one turn of the loop, row by row: plain's eight instructions each facing its counterpart among ASan's seventeen | `only here` bars; the page facing the check; the check's values (`0 : 0 ZF`, `taken`); the partial check and the report's call faint, off the path at 00 | | [28](mock/28-pair-part.png) | i = 16, the step in which they part | plain's store struck into the saved rbp's low byte; ASan's shadow load framed reading `f3`, its compare and the branch not taken; `differs` on the facing rows | +| [29](mock/29-intro-bytes.png) | the introduction's first picture, the camera at x2: 128 bytes of the stack, nothing else | a raw hexdump, before any ink | +| [30](mock/30-intro-words.png) | eight bytes a row, each row's word read right to left beside it, inked; the address space beside | `regroup` landed; `ink`; `segments`, the code mapping framed for the return address | +| [31](mock/31-intro-stack.png) | the same words as the stack panel, the registers built over it, at x1.25 | the stack's conventions: rsp and rbp pins, offsets, roles, spans | +| [32](mock/32-intro-code.png) | the code chapter: `aligned` with each instruction's bytes between its address and mnemonic | an instruction as bytes, decoded, level with its line | +| [33](mock/33-aligned.png) | the `aligned` split: reverse and its neighbours, the pc at the load | a line with two runs (20), lines with no code, rows of no line, the band as the thread | | [1](mock/01-fib-recursion.png) | first pass | `calls` at camera scale | | [2](mock/02-list-insert.png) | first pass | `nodes` at camera scale; `allocated` | | [3](mock/03-syscall-write.png) | first pass | `syscalls`; `kernel` (the kernel's side is now the descent's floor, 16) | @@ -1750,7 +1807,11 @@ is not checked here. The tokens are under [Token changes](#token-changes). run's stack rows, one clock with two moment counts, two minimaps at a fortieth, the stopped side holding, a run's stderr as a panel; steps matched by source line or loop turn. -9. **Still from before**: the calls tree's small size and folds, +9. **The introduction's blocks** ([`segments`](#segments), [`aligned`](#aligned)): + the address space from the mappings; the aligned split; `regroup`, + `ink`, `column`, `frame up`, `decode`, `align`; a hexdump with no ink + (the first picture only). +10. **Still from before**: the calls tree's small size and folds, `metric.span.name_max` 300, `time.caption_max` 12 s and `time.first_step` 4 s (5 s when a scene opens on the map), `time.dive` and `time.flash`. @@ -1780,6 +1841,13 @@ is not checked here. The tokens are under [Token changes](#token-changes). `--from` did not take; `dbg` with a breakpoint was used instead. - For the heap scene: see [the scene](motion.md#a-scene-libcs-heap-from-the-inside). - For a pair (the ASan scene): see [the scene](motion.md#a-scene-asan-against-a-plain-build). +- For the introduction: the mappings with their permissions and their + file offsets (to say code, read-only data, data), not only their ranges + and paths (`ztrace show` prints ranges and paths); the bytes of the + instructions in the window (or the binary, for the renderer to read + them); and a recording of the program by instruction from `main` to the + stop, so that a real `push`, a real `call` and the moment rsp moves are + shown, not described. - **For the graph**, per function and once: its blocks (first and last address, how each ends: a conditional jump, a jump, an indirect jump, a return, a call that does not return, or a fall into the next), each diff --git a/design/mock/29-intro-bytes.png b/design/mock/29-intro-bytes.png Binary files differnew file mode 100644 index 0000000..e382abe --- /dev/null +++ b/design/mock/29-intro-bytes.png diff --git a/design/mock/29-intro-bytes.svg b/design/mock/29-intro-bytes.svg new file mode 100644 index 0000000..fcd07cc --- /dev/null +++ b/design/mock/29-intro-bytes.svg @@ -0,0 +1,145 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="1920" height="1080" viewBox="0 0 1920 1080"> +<defs><pattern id="hatch" width="20" height="20" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect width="5" height="20" fill="#3a4a8a"/></pattern><pattern id="hazard" width="24" height="24" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect width="24" height="24" fill="#050a24"/><rect width="12" height="24" fill="#ff6a4a"/></pattern></defs> +<rect width="1920" height="1080" fill="#0a1030"/> +<g transform="translate(300,170) scale(2)"> +<text x="0.0" y="-10.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve">128 bytes, from where rsp points</text> +<text x="0.0 12.0 24.0 36.0 48.0 60.0 72.0 84.0 96.0 108.0 120.0 132.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">7fffffffece0</text> +<text x="156.0 168.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="186.0 198.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">ed</text> +<text x="216.0 228.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">ff</text> +<text x="246.0 258.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">ff</text> +<text x="276.0 288.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">ff</text> +<text x="306.0 318.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">7f</text> +<text x="336.0 348.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="366.0 378.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="408.0 420.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">b0</text> +<text x="438.0 450.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">18</text> +<text x="468.0 480.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="498.0 510.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">01</text> +<text x="528.0 540.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="558.0 570.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="588.0 600.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="618.0 630.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="0.0 12.0 24.0 36.0 48.0 60.0 72.0 84.0 96.0 108.0 120.0 132.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">7fffffffecf0</text> +<text x="156.0 168.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">e8</text> +<text x="186.0 198.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0d</text> +<text x="216.0 228.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">e2</text> +<text x="246.0 258.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">f7</text> +<text x="276.0 288.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">ff</text> +<text x="306.0 318.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">7f</text> +<text x="336.0 348.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="366.0 378.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="408.0 420.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="438.0 450.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="468.0 480.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="498.0 510.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="528.0 540.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="558.0 570.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="588.0 600.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="618.0 630.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="0.0 12.0 24.0 36.0 48.0 60.0 72.0 84.0 96.0 108.0 120.0 132.0" y="67.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">7fffffffed00</text> +<text x="156.0 168.0" y="67.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">b0</text> +<text x="186.0 198.0" y="67.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">ed</text> +<text x="216.0 228.0" y="67.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">ff</text> +<text x="246.0 258.0" y="67.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">ff</text> +<text x="276.0 288.0" y="67.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">ff</text> +<text x="306.0 318.0" y="67.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">7f</text> +<text x="336.0 348.0" y="67.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="366.0 378.0" y="67.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="408.0 420.0" y="67.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">81</text> +<text x="438.0 450.0" y="67.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">77</text> +<text x="468.0 480.0" y="67.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">c2</text> +<text x="498.0 510.0" y="67.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">f7</text> +<text x="528.0 540.0" y="67.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">ff</text> +<text x="558.0 570.0" y="67.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">7f</text> +<text x="588.0 600.0" y="67.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="618.0 630.0" y="67.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="0.0 12.0 24.0 36.0 48.0 60.0 72.0 84.0 96.0 108.0 120.0 132.0" y="91.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">7fffffffed10</text> +<text x="156.0 168.0" y="91.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">60</text> +<text x="186.0 198.0" y="91.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0c</text> +<text x="216.0 228.0" y="91.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">fe</text> +<text x="246.0 258.0" y="91.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">f7</text> +<text x="276.0 288.0" y="91.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">ff</text> +<text x="306.0 318.0" y="91.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">7f</text> +<text x="336.0 348.0" y="91.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="366.0 378.0" y="91.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="408.0 420.0" y="91.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">38</text> +<text x="438.0 450.0" y="91.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">ee</text> +<text x="468.0 480.0" y="91.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">ff</text> +<text x="498.0 510.0" y="91.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">ff</text> +<text x="528.0 540.0" y="91.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">ff</text> +<text x="558.0 570.0" y="91.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">7f</text> +<text x="588.0 600.0" y="91.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="618.0 630.0" y="91.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="0.0 12.0 24.0 36.0 48.0 60.0 72.0 84.0 96.0 108.0 120.0 132.0" y="115.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">7fffffffed20</text> +<text x="156.0 168.0" y="115.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="186.0 198.0" y="115.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">e0</text> +<text x="216.0 228.0" y="115.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">fb</text> +<text x="246.0 258.0" y="115.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">f7</text> +<text x="276.0 288.0" y="115.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">01</text> +<text x="306.0 318.0" y="115.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="336.0 348.0" y="115.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="366.0 378.0" y="115.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="408.0 420.0" y="115.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">60</text> +<text x="438.0 450.0" y="115.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">18</text> +<text x="468.0 480.0" y="115.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="498.0 510.0" y="115.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">01</text> +<text x="528.0 540.0" y="115.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="558.0 570.0" y="115.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="588.0 600.0" y="115.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="618.0 630.0" y="115.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="0.0 12.0 24.0 36.0 48.0 60.0 72.0 84.0 96.0 108.0 120.0 132.0" y="139.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">7fffffffed30</text> +<text x="156.0 168.0" y="139.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">70</text> +<text x="186.0 198.0" y="139.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">ed</text> +<text x="216.0 228.0" y="139.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">ff</text> +<text x="246.0 258.0" y="139.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">ff</text> +<text x="276.0 288.0" y="139.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">ff</text> +<text x="306.0 318.0" y="139.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">7f</text> +<text x="336.0 348.0" y="139.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="366.0 378.0" y="139.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="408.0 420.0" y="139.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">60</text> +<text x="438.0 450.0" y="139.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">f2</text> +<text x="468.0 480.0" y="139.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">fd</text> +<text x="498.0 510.0" y="139.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">f7</text> +<text x="528.0 540.0" y="139.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">ff</text> +<text x="558.0 570.0" y="139.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">7f</text> +<text x="588.0 600.0" y="139.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="618.0 630.0" y="139.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="0.0 12.0 24.0 36.0 48.0 60.0 72.0 84.0 96.0 108.0 120.0 132.0" y="163.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">7fffffffed40</text> +<text x="156.0 168.0" y="163.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="186.0 198.0" y="163.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="216.0 228.0" y="163.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="246.0 258.0" y="163.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="276.0 288.0" y="163.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="306.0 318.0" y="163.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="336.0 348.0" y="163.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="366.0 378.0" y="163.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="408.0 420.0" y="163.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">1c</text> +<text x="438.0 450.0" y="163.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">78</text> +<text x="468.0 480.0" y="163.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">a5</text> +<text x="498.0 510.0" y="163.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">95</text> +<text x="528.0 540.0" y="163.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">fc</text> +<text x="558.0 570.0" y="163.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">35</text> +<text x="588.0 600.0" y="163.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">e3</text> +<text x="618.0 630.0" y="163.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">1f</text> +<text x="0.0 12.0 24.0 36.0 48.0 60.0 72.0 84.0 96.0 108.0 120.0 132.0" y="187.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">7fffffffed50</text> +<text x="156.0 168.0" y="187.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">38</text> +<text x="186.0 198.0" y="187.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">ee</text> +<text x="216.0 228.0" y="187.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">ff</text> +<text x="246.0 258.0" y="187.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">ff</text> +<text x="276.0 288.0" y="187.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">ff</text> +<text x="306.0 318.0" y="187.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">7f</text> +<text x="336.0 348.0" y="187.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="366.0 378.0" y="187.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="408.0 420.0" y="187.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">01</text> +<text x="438.0 450.0" y="187.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="468.0 480.0" y="187.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="498.0 510.0" y="187.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="528.0 540.0" y="187.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="558.0 570.0" y="187.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="588.0 600.0" y="187.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="618.0 630.0" y="187.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +</g> +<text x="64.0" y="964.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">A running program is bytes in memory.</tspan></text> +<text x="64.0" y="1018.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">These are 128 of them, sixteen to a row.</tspan></text> +</svg> diff --git a/design/mock/30-intro-words.png b/design/mock/30-intro-words.png Binary files differnew file mode 100644 index 0000000..faba6f4 --- /dev/null +++ b/design/mock/30-intro-words.png diff --git a/design/mock/30-intro-words.svg b/design/mock/30-intro-words.svg new file mode 100644 index 0000000..fd1502b --- /dev/null +++ b/design/mock/30-intro-words.svg @@ -0,0 +1,246 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="1920" height="1080" viewBox="0 0 1920 1080"> +<defs><pattern id="hatch" width="20" height="20" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect width="5" height="20" fill="#3a4a8a"/></pattern><pattern id="hazard" width="24" height="24" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect width="24" height="24" fill="#050a24"/><rect width="12" height="24" fill="#ff6a4a"/></pattern></defs> +<rect width="1920" height="1080" fill="#0a1030"/> +<g transform="translate(64,96) scale(1.35)"> +<text x="0.0" y="-10.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve">eight bytes a row, read right to left, a word</text> +<text x="0.0 12.0 24.0 36.0 48.0 60.0 72.0 84.0 96.0 108.0 120.0 132.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffece0</text> +<text x="156.0 168.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="186.0 198.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">ed</text> +<text x="216.0 228.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">ff</text> +<text x="246.0 258.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">ff</text> +<text x="276.0 288.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">ff</text> +<text x="306.0 318.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">7f</text> +<text x="336.0 348.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="366.0 378.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="420.0 432.0 444.0 456.0 468.0 480.0 492.0 504.0 516.0 528.0 540.0 552.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffed00</text> +<text x="0.0 12.0 24.0 36.0 48.0 60.0 72.0 84.0 96.0 108.0 120.0 132.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffece8</text> +<text x="156.0 168.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">b0</text> +<text x="186.0 198.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">18</text> +<text x="216.0 228.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="246.0 258.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">01</text> +<text x="276.0 288.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="306.0 318.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="336.0 348.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="366.0 378.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="420.0 432.0 444.0 456.0 468.0 480.0 492.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">10018b0</text> +<text x="0.0 12.0 24.0 36.0 48.0 60.0 72.0 84.0 96.0 108.0 120.0 132.0" y="67.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffecf0</text> +<text x="156.0 168.0" y="67.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">e8</text> +<text x="186.0 198.0" y="67.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">0d</text> +<text x="216.0 228.0" y="67.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">e2</text> +<text x="246.0 258.0" y="67.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">f7</text> +<text x="276.0 288.0" y="67.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">ff</text> +<text x="306.0 318.0" y="67.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">7f</text> +<text x="336.0 348.0" y="67.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="366.0 378.0" y="67.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="420.0 432.0 444.0 456.0 468.0 480.0 492.0 504.0 516.0 528.0 540.0 552.0" y="67.2" font-family="JetBrains Mono NL" font-size="20" fill="#d59cf5" xml:space="preserve" font-weight="500">7ffff7e20de8</text> +<text x="0.0 12.0 24.0 36.0 48.0 60.0 72.0 84.0 96.0 108.0 120.0 132.0" y="91.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffecf8</text> +<text x="156.0 168.0" y="91.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="186.0 198.0" y="91.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="216.0 228.0" y="91.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="246.0 258.0" y="91.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="276.0 288.0" y="91.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="306.0 318.0" y="91.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="336.0 348.0" y="91.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="366.0 378.0" y="91.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="420.0" y="91.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="0.0 12.0 24.0 36.0 48.0 60.0 72.0 84.0 96.0 108.0 120.0 132.0" y="115.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffed00</text> +<text x="156.0 168.0" y="115.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">b0</text> +<text x="186.0 198.0" y="115.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">ed</text> +<text x="216.0 228.0" y="115.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">ff</text> +<text x="246.0 258.0" y="115.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">ff</text> +<text x="276.0 288.0" y="115.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">ff</text> +<text x="306.0 318.0" y="115.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">7f</text> +<text x="336.0 348.0" y="115.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="366.0 378.0" y="115.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="420.0 432.0 444.0 456.0 468.0 480.0 492.0 504.0 516.0 528.0 540.0 552.0" y="115.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffedb0</text> +<text x="0.0 12.0 24.0 36.0 48.0 60.0 72.0 84.0 96.0 108.0 120.0 132.0" y="139.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffed08</text> +<text x="156.0 168.0" y="139.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">81</text> +<text x="186.0 198.0" y="139.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">77</text> +<text x="216.0 228.0" y="139.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">c2</text> +<text x="246.0 258.0" y="139.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">f7</text> +<text x="276.0 288.0" y="139.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">ff</text> +<text x="306.0 318.0" y="139.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">7f</text> +<text x="336.0 348.0" y="139.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="366.0 378.0" y="139.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="420.0 432.0 444.0 456.0 468.0 480.0 492.0 504.0 516.0 528.0 540.0 552.0" y="139.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">7ffff7c27781</text> +<text x="0.0 12.0 24.0 36.0 48.0 60.0 72.0 84.0 96.0 108.0 120.0 132.0" y="163.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffed10</text> +<text x="156.0 168.0" y="163.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">60</text> +<text x="186.0 198.0" y="163.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">0c</text> +<text x="216.0 228.0" y="163.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">fe</text> +<text x="246.0 258.0" y="163.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">f7</text> +<text x="276.0 288.0" y="163.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">ff</text> +<text x="306.0 318.0" y="163.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">7f</text> +<text x="336.0 348.0" y="163.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="366.0 378.0" y="163.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="420.0 432.0 444.0 456.0 468.0 480.0 492.0 504.0 516.0 528.0 540.0 552.0" y="163.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">7ffff7fe0c60</text> +<text x="0.0 12.0 24.0 36.0 48.0 60.0 72.0 84.0 96.0 108.0 120.0 132.0" y="187.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffed18</text> +<text x="156.0 168.0" y="187.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">38</text> +<text x="186.0 198.0" y="187.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">ee</text> +<text x="216.0 228.0" y="187.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">ff</text> +<text x="246.0 258.0" y="187.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">ff</text> +<text x="276.0 288.0" y="187.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">ff</text> +<text x="306.0 318.0" y="187.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">7f</text> +<text x="336.0 348.0" y="187.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="366.0 378.0" y="187.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="420.0 432.0 444.0 456.0 468.0 480.0 492.0 504.0 516.0 528.0 540.0 552.0" y="187.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffee38</text> +<text x="0.0 12.0 24.0 36.0 48.0 60.0 72.0 84.0 96.0 108.0 120.0 132.0" y="211.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffed20</text> +<text x="156.0 168.0" y="211.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="186.0 198.0" y="211.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">e0</text> +<text x="216.0 228.0" y="211.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">fb</text> +<text x="246.0 258.0" y="211.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">f7</text> +<text x="276.0 288.0" y="211.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">01</text> +<text x="306.0 318.0" y="211.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="336.0 348.0" y="211.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="366.0 378.0" y="211.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="420.0 432.0 444.0 456.0 468.0 480.0 492.0 504.0 516.0" y="211.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">1f7fbe000</text> +<text x="0.0 12.0 24.0 36.0 48.0 60.0 72.0 84.0 96.0 108.0 120.0 132.0" y="235.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffed28</text> +<text x="156.0 168.0" y="235.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">60</text> +<text x="186.0 198.0" y="235.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">18</text> +<text x="216.0 228.0" y="235.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="246.0 258.0" y="235.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">01</text> +<text x="276.0 288.0" y="235.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="306.0 318.0" y="235.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="336.0 348.0" y="235.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="366.0 378.0" y="235.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="420.0 432.0 444.0 456.0 468.0 480.0 492.0" y="235.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">1001860</text> +<text x="0.0 12.0 24.0 36.0 48.0 60.0 72.0 84.0 96.0 108.0 120.0 132.0" y="259.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffed30</text> +<text x="156.0 168.0" y="259.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">70</text> +<text x="186.0 198.0" y="259.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">ed</text> +<text x="216.0 228.0" y="259.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">ff</text> +<text x="246.0 258.0" y="259.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">ff</text> +<text x="276.0 288.0" y="259.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">ff</text> +<text x="306.0 318.0" y="259.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">7f</text> +<text x="336.0 348.0" y="259.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="366.0 378.0" y="259.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="420.0 432.0 444.0 456.0 468.0 480.0 492.0 504.0 516.0 528.0 540.0 552.0" y="259.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffed70</text> +<text x="0.0 12.0 24.0 36.0 48.0 60.0 72.0 84.0 96.0 108.0 120.0 132.0" y="283.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffed38</text> +<text x="156.0 168.0" y="283.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">60</text> +<text x="186.0 198.0" y="283.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">f2</text> +<text x="216.0 228.0" y="283.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">fd</text> +<text x="246.0 258.0" y="283.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">f7</text> +<text x="276.0 288.0" y="283.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">ff</text> +<text x="306.0 318.0" y="283.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">7f</text> +<text x="336.0 348.0" y="283.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="366.0 378.0" y="283.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="420.0 432.0 444.0 456.0 468.0 480.0 492.0 504.0 516.0 528.0 540.0 552.0" y="283.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">7ffff7fdf260</text> +<text x="0.0 12.0 24.0 36.0 48.0 60.0 72.0 84.0 96.0 108.0 120.0 132.0" y="307.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffed40</text> +<text x="156.0 168.0" y="307.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="186.0 198.0" y="307.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="216.0 228.0" y="307.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="246.0 258.0" y="307.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="276.0 288.0" y="307.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="306.0 318.0" y="307.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="336.0 348.0" y="307.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="366.0 378.0" y="307.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="420.0" y="307.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="0.0 12.0 24.0 36.0 48.0 60.0 72.0 84.0 96.0 108.0 120.0 132.0" y="331.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffed48</text> +<text x="156.0 168.0" y="331.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">1c</text> +<text x="186.0 198.0" y="331.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">78</text> +<text x="216.0 228.0" y="331.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">a5</text> +<text x="246.0 258.0" y="331.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">95</text> +<text x="276.0 288.0" y="331.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">fc</text> +<text x="306.0 318.0" y="331.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">35</text> +<text x="336.0 348.0" y="331.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">e3</text> +<text x="366.0 378.0" y="331.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">1f</text> +<text x="420.0 432.0 444.0 456.0 468.0 480.0 492.0 504.0 516.0 528.0 540.0 552.0 564.0 576.0 588.0 600.0" y="331.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">1fe335fc95a5781c</text> +<text x="0.0 12.0 24.0 36.0 48.0 60.0 72.0 84.0 96.0 108.0 120.0 132.0" y="355.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffed50</text> +<text x="156.0 168.0" y="355.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">38</text> +<text x="186.0 198.0" y="355.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">ee</text> +<text x="216.0 228.0" y="355.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">ff</text> +<text x="246.0 258.0" y="355.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">ff</text> +<text x="276.0 288.0" y="355.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">ff</text> +<text x="306.0 318.0" y="355.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">7f</text> +<text x="336.0 348.0" y="355.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="366.0 378.0" y="355.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="420.0 432.0 444.0 456.0 468.0 480.0 492.0 504.0 516.0 528.0 540.0 552.0" y="355.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffee38</text> +<text x="0.0 12.0 24.0 36.0 48.0 60.0 72.0 84.0 96.0 108.0 120.0 132.0" y="379.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffed58</text> +<text x="156.0 168.0" y="379.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">01</text> +<text x="186.0 198.0" y="379.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="216.0 228.0" y="379.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="246.0 258.0" y="379.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="276.0 288.0" y="379.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="306.0 318.0" y="379.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="336.0 348.0" y="379.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="366.0 378.0" y="379.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text> +<text x="420.0" y="379.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">1</text> +<rect x="153.0" y="24.0" width="242.0" height="24.0" fill="none" stroke="#6fd6e6" stroke-width="2"/> +<rect x="415.0" y="24.0" width="94.0" height="24.0" fill="none" stroke="#6fd6e6" stroke-width="2"/> +<rect x="612.0" y="-24.0" width="560.0" height="24.0" fill="#16245f"/> +<rect x="613.0" y="-23.0" width="558.0" height="390.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="621.0" y="-17.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="640.0" y="-6.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">the address space</text> +<text x="1162.0" y="-6.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve" text-anchor="end">the recording's mappings, low on top</text> +<rect x="624.0" y="7.0" width="8.0" height="18.0" fill="#eee6d2"/> +<text x="644.0 656.0 668.0 680.0 692.0 704.0 716.0" y="23.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">1000000</text> +<text x="800.0 812.0 824.0 836.0" y="23.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">list</text> +<text x="932.0" y="23.2" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">headers, read-only</text> +<text x="1100.0 1112.0 1124.0 1136.0 1148.0" y="23.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">4 KiB</text> +<rect x="624.0" y="31.0" width="8.0" height="18.0" fill="#ff8f9a"/> +<text x="644.0 656.0 668.0 680.0 692.0 704.0 716.0" y="47.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">1001000</text> +<text x="800.0 812.0 824.0 836.0" y="47.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">list</text> +<text x="932.0" y="47.2" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">code</text> +<text x="1100.0 1112.0 1124.0 1136.0 1148.0" y="47.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">4 KiB</text> +<rect x="619.0" y="29.0" width="546.0" height="22.0" fill="none" stroke="#6fd6e6" stroke-width="2"/> +<rect x="624.0" y="55.0" width="8.0" height="18.0" fill="#eee6d2"/> +<text x="644.0 656.0 668.0 680.0 692.0 704.0 716.0" y="71.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">1002000</text> +<text x="800.0 812.0 824.0 836.0" y="71.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">list</text> +<text x="932.0" y="71.2" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">read-only data</text> +<text x="1100.0 1112.0 1124.0 1136.0 1148.0" y="71.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">4 KiB</text> +<rect x="624.0" y="79.0" width="8.0" height="18.0" fill="#d59cf5"/> +<text x="644.0 656.0 668.0 680.0 692.0 704.0 716.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#d59cf5" xml:space="preserve" font-weight="500">1003000</text> +<text x="800.0 812.0 824.0 836.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">list</text> +<text x="932.0" y="95.2" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">data</text> +<text x="1100.0 1112.0 1124.0 1136.0 1148.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">4 KiB</text> +<rect x="624.0" y="103.0" width="8.0" height="18.0" fill="#86b6ff"/> +<text x="644.0 656.0 668.0 680.0 692.0 704.0 716.0" y="119.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">1004000</text> +<text x="800.0 812.0 824.0 836.0" y="119.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">heap</text> +<text x="932.0" y="119.2" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">malloc's</text> +<text x="1076.0 1088.0 1100.0 1112.0 1124.0 1136.0 1148.0" y="119.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">132 KiB</text> +<path d="M626,132 l6,4 l-6,4 l6,4" fill="none" stroke="#6a7ab8" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt"/> +<text x="652.0" y="143.2" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve">nothing mapped · 127 TiB</text> +<rect x="624.0" y="151.0" width="8.0" height="18.0" fill="#eee6d2"/> +<text x="644.0 656.0 668.0 680.0 692.0 704.0 716.0 728.0 740.0 752.0 764.0 776.0" y="167.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">7ffff7c00000</text> +<text x="800.0 812.0 824.0 836.0 848.0 860.0 872.0 884.0 896.0" y="167.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">libc.so.6</text> +<text x="932.0" y="167.2" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">read-only</text> +<text x="1076.0 1088.0 1100.0 1112.0 1124.0 1136.0 1148.0" y="167.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">144 KiB</text> +<rect x="624.0" y="175.0" width="8.0" height="18.0" fill="#ff8f9a"/> +<text x="644.0 656.0 668.0 680.0 692.0 704.0 716.0 728.0 740.0 752.0 764.0 776.0" y="191.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">7ffff7c24000</text> +<text x="800.0 812.0 824.0 836.0 848.0 860.0 872.0 884.0 896.0" y="191.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">libc.so.6</text> +<text x="932.0" y="191.2" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">code</text> +<text x="1076.0 1088.0 1100.0 1112.0 1124.0 1136.0 1148.0" y="191.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">1.5 MiB</text> +<rect x="624.0" y="199.0" width="8.0" height="18.0" fill="#eee6d2"/> +<text x="644.0 656.0 668.0 680.0 692.0 704.0 716.0 728.0 740.0 752.0 764.0 776.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">7ffff7d9f000</text> +<text x="800.0 812.0 824.0 836.0 848.0 860.0 872.0 884.0 896.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">libc.so.6</text> +<text x="932.0" y="215.2" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">read-only data</text> +<text x="1076.0 1088.0 1100.0 1112.0 1124.0 1136.0 1148.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">472 KiB</text> +<rect x="624.0" y="223.0" width="8.0" height="18.0" fill="#d59cf5"/> +<text x="644.0 656.0 668.0 680.0 692.0 704.0 716.0 728.0 740.0 752.0 764.0 776.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#d59cf5" xml:space="preserve" font-weight="500">7ffff7e15000</text> +<text x="800.0 812.0 824.0 836.0 848.0 860.0 872.0 884.0 896.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">libc.so.6</text> +<text x="932.0" y="239.2" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">data</text> +<text x="1088.0 1100.0 1112.0 1124.0 1136.0 1148.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">56 KiB</text> +<rect x="624.0" y="247.0" width="8.0" height="18.0" fill="#ff8f9a"/> +<text x="644.0 656.0 668.0 680.0 692.0 704.0 716.0 728.0 740.0 752.0 764.0 776.0" y="263.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">7ffff7fbc000</text> +<text x="800.0 812.0 824.0 836.0 848.0 860.0" y="263.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">[vdso]</text> +<text x="932.0" y="263.2" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">code</text> +<text x="1100.0 1112.0 1124.0 1136.0 1148.0" y="263.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">8 KiB</text> +<rect x="624.0" y="271.0" width="8.0" height="18.0" fill="#ff8f9a"/> +<text x="644.0 656.0 668.0 680.0 692.0 704.0 716.0 728.0 740.0 752.0 764.0 776.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">7ffff7fbf000</text> +<text x="800.0 812.0 824.0 836.0 848.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">ld.so</text> +<text x="932.0" y="287.2" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">code</text> +<text x="1076.0 1088.0 1100.0 1112.0 1124.0 1136.0 1148.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">180 KiB</text> +<rect x="624.0" y="295.0" width="8.0" height="18.0" fill="#d59cf5"/> +<text x="644.0 656.0 668.0 680.0 692.0 704.0 716.0 728.0 740.0 752.0 764.0 776.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#d59cf5" xml:space="preserve" font-weight="500">7ffff7ffb000</text> +<text x="800.0 812.0 824.0 836.0 848.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">ld.so</text> +<text x="932.0" y="311.2" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">data</text> +<text x="1088.0 1100.0 1112.0 1124.0 1136.0 1148.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">16 KiB</text> +<path d="M626,324 l6,4 l-6,4 l6,4" fill="none" stroke="#6a7ab8" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt"/> +<text x="652.0" y="335.2" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve">nothing mapped · 127 MiB</text> +<rect x="624.0" y="343.0" width="8.0" height="18.0" fill="#f2d675"/> +<text x="644.0 656.0 668.0 680.0 692.0 704.0 716.0 728.0 740.0 752.0 764.0 776.0" y="359.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7ffffffde000</text> +<text x="800.0 812.0 824.0 836.0 848.0 860.0 872.0" y="359.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">[stack]</text> +<text x="932.0" y="359.2" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">the stack</text> +<text x="1076.0 1088.0 1100.0 1112.0 1124.0 1136.0 1148.0" y="359.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">132 KiB</text> +</g> +<text x="64.0" y="964.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">Eight bytes make a word, stored low byte first: read right to left,</tspan></text> +<text x="64.0" y="1018.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">this one is </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">10018b0</tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">, an address in the code, so it takes code's ink.</tspan></text> +</svg> diff --git a/design/mock/31-intro-stack.png b/design/mock/31-intro-stack.png Binary files differnew file mode 100644 index 0000000..a85abd2 --- /dev/null +++ b/design/mock/31-intro-stack.png diff --git a/design/mock/31-intro-stack.svg b/design/mock/31-intro-stack.svg new file mode 100644 index 0000000..e3eadcd --- /dev/null +++ b/design/mock/31-intro-stack.svg @@ -0,0 +1,207 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="1920" height="1080" viewBox="0 0 1920 1080"> +<defs><pattern id="hatch" width="20" height="20" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect width="5" height="20" fill="#3a4a8a"/></pattern><pattern id="hazard" width="24" height="24" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect width="24" height="24" fill="#050a24"/><rect width="12" height="24" fill="#ff6a4a"/></pattern></defs> +<rect width="1920" height="1080" fill="#0a1030"/> +<g transform="translate(-810.0,-209.5) scale(1.25)"> +<rect x="976.0" y="212.0" width="880.0" height="24.0" fill="#16245f"/> +<rect x="977.0" y="213.0" width="878.0" height="438.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="985.0" y="219.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="1004.0" y="230.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">registers</text> +<text x="1501.7" y="230.0" font-family="Go Medium" font-size="18" fill="#f2d675" xml:space="preserve">stack</text> +<text x="1559.8" y="230.0" font-family="Go Medium" font-size="18" fill="#86b6ff" xml:space="preserve">heap</text> +<text x="1614.8" y="230.0" font-family="Go Medium" font-size="18" fill="#ff8f9a" xml:space="preserve">code</text> +<text x="1669.3" y="230.0" font-family="Go Medium" font-size="18" fill="#d59cf5" xml:space="preserve">data</text> +<text x="1719.4" y="230.0" font-family="Go Medium" font-size="18" fill="#d59cf5" xml:space="preserve">rwx</text> +<rect x="1719.4" y="233.0" width="29.5" height="2.0" fill="#d59cf5"/> +<text x="1762.9" y="230.0" font-family="Go Medium" font-size="18" fill="#eee6d2" xml:space="preserve">read-only</text> +<text x="988.0 1000.0 1012.0" y="259.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">rax</text> +<text x="1048.0 1060.0 1072.0 1084.0 1096.0 1108.0 1120.0" y="259.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">1004090</text> +<path d="M1138,252 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="1145.0" y="251.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="1162.0" y="259.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">4</text> +<text x="988.0 1000.0 1012.0" y="283.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">rbx</text> +<text x="1048.0" y="283.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="988.0 1000.0 1012.0" y="307.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">rcx</text> +<text x="1048.0 1060.0 1072.0 1084.0 1096.0 1108.0 1120.0" y="307.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">10040b0</text> +<path d="M1138,300 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="1145.0" y="299.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="1162.0" y="307.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">1</text> +<text x="988.0 1000.0 1012.0" y="331.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">rdx</text> +<text x="1048.0" y="331.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="988.0 1000.0 1012.0" y="355.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">rsi</text> +<text x="1048.0 1060.0 1072.0 1084.0 1096.0 1108.0 1120.0" y="355.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">10040c0</text> +<path d="M1138,348 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="1145.0" y="347.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="1162.0" y="355.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="988.0 1000.0 1012.0" y="379.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">rdi</text> +<text x="1048.0 1060.0 1072.0 1084.0 1096.0 1108.0 1120.0" y="379.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">1004090</text> +<path d="M1138,372 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="1145.0" y="371.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="1162.0" y="379.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">4</text> +<text x="988.0 1000.0 1012.0" y="403.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">rbp</text> +<text x="1048.0 1060.0 1072.0 1084.0 1096.0 1108.0 1120.0 1132.0 1144.0 1156.0 1168.0 1180.0" y="403.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffece0</text> +<rect x="1198.0" y="395.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M1216,396 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="1222.0 1234.0 1246.0 1258.0 1270.0 1282.0 1294.0 1306.0 1318.0 1330.0 1342.0 1354.0" y="403.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffed00</text> +<rect x="1372.0" y="395.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M1390,396 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="1396.0 1408.0 1420.0 1432.0 1444.0 1456.0 1468.0 1480.0 1492.0 1504.0 1516.0 1528.0" y="403.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffedb0</text> +<rect x="1546.0" y="395.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M1564,396 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="1570.0 1582.0 1594.0 1606.0 1618.0 1630.0 1642.0 1654.0 1666.0 1678.0 1690.0 1702.0" y="403.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffee10</text> +<path d="M1720,396 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="1727.0" y="395.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="1744.0" y="403.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="988.0 1000.0 1012.0" y="427.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">rsp</text> +<text x="1048.0 1060.0 1072.0 1084.0 1096.0 1108.0 1120.0 1132.0 1144.0 1156.0 1168.0 1180.0" y="427.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffece0</text> +<rect x="1198.0" y="419.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M1216,420 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="1222.0 1234.0 1246.0 1258.0 1270.0 1282.0 1294.0 1306.0 1318.0 1330.0 1342.0 1354.0" y="427.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffed00</text> +<rect x="1372.0" y="419.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M1390,420 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="1396.0 1408.0 1420.0 1432.0 1444.0 1456.0 1468.0 1480.0 1492.0 1504.0 1516.0 1528.0" y="427.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffedb0</text> +<rect x="1546.0" y="419.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M1564,420 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="1570.0 1582.0 1594.0 1606.0 1618.0 1630.0 1642.0 1654.0 1666.0 1678.0 1690.0 1702.0" y="427.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffee10</text> +<path d="M1720,420 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="1727.0" y="419.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="1744.0" y="427.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="988.0 1000.0" y="451.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">r8</text> +<text x="1048.0 1060.0 1072.0 1084.0 1096.0 1108.0 1120.0 1132.0 1144.0 1156.0 1168.0 1180.0" y="451.2" font-family="JetBrains Mono NL" font-size="20" fill="#d59cf5" xml:space="preserve" font-weight="500">7ffff7e19ac0</text> +<text x="988.0 1000.0" y="475.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">r9</text> +<text x="1048.0 1060.0 1072.0 1084.0" y="475.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0x20</text> +<text x="1104.0 1116.0" y="475.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">32</text> +<text x="988.0 1000.0 1012.0" y="499.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">r10</text> +<text x="1048.0 1060.0 1072.0 1084.0" y="499.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0x10</text> +<text x="1104.0 1116.0" y="499.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">16</text> +<text x="988.0 1000.0 1012.0" y="523.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">r11</text> +<text x="1048.0 1060.0 1072.0 1084.0 1096.0 1108.0 1120.0 1132.0 1144.0 1156.0 1168.0 1180.0" y="523.2" font-family="JetBrains Mono NL" font-size="20" fill="#d59cf5" xml:space="preserve" font-weight="500">7ffff7e19ac8</text> +<text x="988.0 1000.0 1012.0" y="547.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">r12</text> +<text x="1048.0 1060.0 1072.0 1084.0 1096.0 1108.0 1120.0 1132.0 1144.0 1156.0 1168.0 1180.0" y="547.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffee38</text> +<rect x="1198.0" y="539.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M1216,540 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="1222.0 1234.0 1246.0 1258.0 1270.0 1282.0 1294.0 1306.0 1318.0 1330.0 1342.0 1354.0" y="547.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffefea</text> +<path d="M1372,540 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="1379.0" y="539.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="1396.0 1408.0 1420.0 1432.0 1444.0 1456.0 1468.0 1480.0" y="547.2" font-family="JetBrains Mono NL" font-size="20" fill="#b5e8c8" xml:space="preserve" font-weight="500">"./list"</text> +<text x="988.0 1000.0 1012.0" y="571.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">r13</text> +<text x="1048.0" y="571.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">1</text> +<text x="988.0 1000.0 1012.0" y="595.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">r14</text> +<text x="1048.0 1060.0 1072.0 1084.0 1096.0 1108.0 1120.0 1132.0 1144.0 1156.0 1168.0 1180.0" y="595.2" font-family="JetBrains Mono NL" font-size="20" fill="#d59cf5" xml:space="preserve" font-weight="500">7ffff7ffd000</text> +<rect x="1198.0" y="587.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M1216,588 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="1222.0 1234.0 1246.0 1258.0 1270.0 1282.0 1294.0 1306.0 1318.0 1330.0 1342.0 1354.0" y="595.2" font-family="JetBrains Mono NL" font-size="20" fill="#d59cf5" xml:space="preserve" font-weight="500">7ffff7ffe3c0</text> +<path d="M1372,588 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="1379.0" y="587.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="1396.0" y="595.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="988.0 1000.0 1012.0" y="619.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">r15</text> +<text x="1048.0 1060.0 1072.0 1084.0 1096.0 1108.0 1120.0" y="619.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">10029c0</text> +<path d="M1138,612 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="1145.0" y="611.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="1162.0" y="619.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">1</text> +<rect x="978.0" y="624.0" width="876.0" height="24.0" fill="#222742"/> +<rect x="978.0" y="624.0" width="54.0" height="24.0" fill="#e8c46a"/> +<text x="988.0 1000.0 1012.0" y="643.2" font-family="JetBrains Mono NL" font-size="20" fill="#050a24" xml:space="preserve" font-weight="bold">rip</text> +<text x="1048.0 1060.0 1072.0 1084.0 1096.0 1108.0 1120.0" y="643.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">1001926</text> +<text x="1142.0 1154.0 1166.0 1178.0 1190.0 1202.0 1214.0 1226.0 1238.0 1250.0" y="643.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">reverse+22</text> +<text x="1522.0 1534.0" y="643.2" font-family="JetBrains Mono NL" font-size="20" fill="#828dbb" xml:space="preserve" font-weight="500">cf</text> +<rect x="1560.0" y="626.0" width="32.0" height="20.0" fill="#16245f"/> +<text x="1564.0 1576.0" y="643.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">PF</text> +<text x="1606.0 1618.0" y="643.2" font-family="JetBrains Mono NL" font-size="20" fill="#828dbb" xml:space="preserve" font-weight="500">af</text> +<text x="1648.0 1660.0" y="643.2" font-family="JetBrains Mono NL" font-size="20" fill="#828dbb" xml:space="preserve" font-weight="500">zf</text> +<text x="1690.0 1702.0" y="643.2" font-family="JetBrains Mono NL" font-size="20" fill="#828dbb" xml:space="preserve" font-weight="500">sf</text> +<rect x="1728.0" y="626.0" width="32.0" height="20.0" fill="#16245f"/> +<text x="1732.0 1744.0" y="643.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">IF</text> +<text x="1774.0 1786.0" y="643.2" font-family="JetBrains Mono NL" font-size="20" fill="#828dbb" xml:space="preserve" font-weight="500">df</text> +<text x="1816.0 1828.0" y="643.2" font-family="JetBrains Mono NL" font-size="20" fill="#828dbb" xml:space="preserve" font-weight="500">of</text> +<rect x="976.0" y="664.0" width="880.0" height="24.0" fill="#16245f"/> +<rect x="977.0" y="665.0" width="878.0" height="222.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="985.0" y="671.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="1004.0" y="682.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">stack</text> +<text x="1846.0" y="682.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve" text-anchor="end">eight words from rsp · the frames they belong to</text> +<text x="992.0 1004.0 1016.0 1028.0 1040.0 1052.0 1064.0" y="711.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="bold">rbp rsp</text> +<path d="M1090,704 l-9,-6 v12 Z" fill="#f2d675"/> +<text x="1124.0 1136.0" y="711.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+0</text> +<text x="1612.0 1624.0 1636.0 1648.0 1660.0 1672.0 1684.0 1696.0 1708.0" y="711.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">saved rbp</text> +<text x="1160.0 1172.0 1184.0 1196.0 1208.0 1220.0 1232.0 1244.0 1256.0" y="711.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="1268.0 1280.0 1292.0" y="711.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">ce0</text> +<rect x="1310.0" y="703.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M1328,704 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="1334.0 1346.0 1358.0 1370.0 1382.0 1394.0 1406.0 1418.0 1430.0 1442.0 1454.0 1466.0" y="711.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffed00</text> +<rect x="1484.0" y="703.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M1502,704 l-8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="1510.0" y="706.0" width="3.0" height="3.0" fill="#6a7ab8"/> +<rect x="1518.0" y="706.0" width="3.0" height="3.0" fill="#6a7ab8"/> +<rect x="1526.0" y="706.0" width="3.0" height="3.0" fill="#6a7ab8"/> +<text x="1124.0 1136.0" y="735.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+8</text> +<text x="1160.0 1172.0 1184.0 1196.0 1208.0 1220.0 1232.0 1244.0 1256.0" y="735.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="1268.0 1280.0 1292.0" y="735.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">ce8</text> +<rect x="1310.0" y="727.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M1328,728 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="1334.0 1346.0 1358.0 1370.0 1382.0 1394.0 1406.0" y="735.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">10018b0</text> +<text x="1428.0 1440.0 1452.0 1464.0 1476.0 1488.0 1500.0" y="735.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">main+80</text> +<text x="1112.0 1124.0 1136.0" y="759.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+10</text> +<text x="1160.0 1172.0 1184.0 1196.0 1208.0 1220.0 1232.0 1244.0 1256.0" y="759.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="1268.0 1280.0 1292.0" y="759.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">cf0</text> +<rect x="1310.0" y="751.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M1328,752 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="1334.0 1346.0 1358.0 1370.0 1382.0 1394.0 1406.0 1418.0 1430.0 1442.0 1454.0 1466.0" y="759.2" font-family="JetBrains Mono NL" font-size="20" fill="#d59cf5" xml:space="preserve" font-weight="500">7ffff7e20de8</text> +<text x="1112.0 1124.0 1136.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+18</text> +<text x="1612.0 1624.0 1636.0 1648.0 1660.0 1672.0 1684.0 1696.0 1708.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">saved rbx</text> +<text x="1160.0 1172.0 1184.0 1196.0 1208.0 1220.0 1232.0 1244.0 1256.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="1268.0 1280.0 1292.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">cf8</text> +<path d="M1310,776 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="1317.0" y="775.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="1334.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="1112.0 1124.0 1136.0" y="807.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+20</text> +<text x="1612.0 1624.0 1636.0 1648.0 1660.0 1672.0 1684.0 1696.0 1708.0" y="807.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">saved rbp</text> +<text x="1160.0 1172.0 1184.0 1196.0 1208.0 1220.0 1232.0 1244.0 1256.0" y="807.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="1268.0 1280.0 1292.0" y="807.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">d00</text> +<rect x="1310.0" y="799.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M1328,800 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="1334.0 1346.0 1358.0 1370.0 1382.0 1394.0 1406.0 1418.0 1430.0 1442.0 1454.0 1466.0" y="807.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffedb0</text> +<rect x="1484.0" y="799.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M1502,800 l-8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="1510.0" y="802.0" width="3.0" height="3.0" fill="#6a7ab8"/> +<rect x="1518.0" y="802.0" width="3.0" height="3.0" fill="#6a7ab8"/> +<rect x="1526.0" y="802.0" width="3.0" height="3.0" fill="#6a7ab8"/> +<text x="1112.0 1124.0 1136.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+28</text> +<text x="1160.0 1172.0 1184.0 1196.0 1208.0 1220.0 1232.0 1244.0 1256.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="1268.0 1280.0 1292.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">d08</text> +<rect x="1310.0" y="823.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M1328,824 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="1334.0 1346.0 1358.0 1370.0 1382.0 1394.0 1406.0 1418.0 1430.0 1442.0 1454.0 1466.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">7ffff7c27781</text> +<text x="1488.0 1500.0 1512.0 1524.0 1536.0 1548.0 1560.0 1572.0 1584.0 1596.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">libc+27781</text> +<text x="1112.0 1124.0 1136.0" y="855.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+30</text> +<text x="1160.0 1172.0 1184.0 1196.0 1208.0 1220.0 1232.0 1244.0 1256.0" y="855.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="1268.0 1280.0 1292.0" y="855.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">d10</text> +<rect x="1310.0" y="847.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M1328,848 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="1334.0 1346.0 1358.0 1370.0 1382.0 1394.0 1406.0 1418.0 1430.0 1442.0 1454.0 1466.0" y="855.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">7ffff7fe0c60</text> +<text x="1488.0 1500.0 1512.0 1524.0 1536.0 1548.0 1560.0 1572.0 1584.0 1596.0 1608.0" y="855.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">ld.so+22c60</text> +<text x="1112.0 1124.0 1136.0" y="879.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+38</text> +<text x="1160.0 1172.0 1184.0 1196.0 1208.0 1220.0 1232.0 1244.0 1256.0" y="879.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="1268.0 1280.0 1292.0" y="879.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">d18</text> +<rect x="1310.0" y="871.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M1328,872 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="1334.0 1346.0 1358.0 1370.0 1382.0 1394.0 1406.0 1418.0 1430.0 1442.0 1454.0 1466.0" y="879.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffee38</text> +<rect x="1484.0" y="871.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M1502,872 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="1508.0 1520.0 1532.0 1544.0 1556.0 1568.0 1580.0 1592.0 1604.0 1616.0 1628.0 1640.0" y="879.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffefea</text> +<path d="M1658,872 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="1665.0" y="871.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="1682.0 1694.0 1706.0" y="879.2" font-family="JetBrains Mono NL" font-size="20" fill="#b5e8c8" xml:space="preserve" font-weight="500">".…</text> +<rect x="1841.0" y="695.0" width="2.0" height="42.0" fill="#e8c46a"/> +<rect x="1835.0" y="695.0" width="8.0" height="2.0" fill="#e8c46a"/> +<rect x="1835.0" y="735.0" width="8.0" height="2.0" fill="#e8c46a"/> +<text x="1828.0" y="722.0" font-family="Go Medium" font-size="18" fill="#fff8e8" xml:space="preserve" text-anchor="end">reverse</text> +<rect x="1841.0" y="743.0" width="2.0" height="90.0" fill="#3a4a8a"/> +<rect x="1835.0" y="743.0" width="8.0" height="2.0" fill="#3a4a8a"/> +<rect x="1835.0" y="831.0" width="8.0" height="2.0" fill="#3a4a8a"/> +<text x="1828.0" y="794.0" font-family="Go Medium" font-size="18" fill="#9aa6d9" xml:space="preserve" text-anchor="end">main</text> +<rect x="1841.0" y="839.0" width="2.0" height="45.0" fill="#3a4a8a"/> +<rect x="1835.0" y="839.0" width="8.0" height="2.0" fill="#3a4a8a"/> +<text x="1828.0" y="867.5" font-family="Go Medium" font-size="18" fill="#9aa6d9" xml:space="preserve" text-anchor="end">libc+27781</text> +</g> +<text x="64.0" y="964.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">The same words as the stack: rsp points at its top, each word</tspan></text> +<text x="64.0" y="1018.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">has its offset, a frame is a span, and the registers sit over it.</tspan></text> +</svg> diff --git a/design/mock/32-intro-code.png b/design/mock/32-intro-code.png Binary files differnew file mode 100644 index 0000000..eb22ba7 --- /dev/null +++ b/design/mock/32-intro-code.png diff --git a/design/mock/32-intro-code.svg b/design/mock/32-intro-code.svg new file mode 100644 index 0000000..35597b8 --- /dev/null +++ b/design/mock/32-intro-code.svg @@ -0,0 +1,155 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="1920" height="1080" viewBox="0 0 1920 1080"> +<defs><pattern id="hatch" width="20" height="20" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect width="5" height="20" fill="#3a4a8a"/></pattern><pattern id="hazard" width="24" height="24" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect width="24" height="24" fill="#050a24"/><rect width="12" height="24" fill="#ff6a4a"/></pattern></defs> +<rect width="1920" height="1080" fill="#0a1030"/> +<rect x="64.0" y="48.0" width="880.0" height="24.0" fill="#16245f"/> +<rect x="65.0" y="49.0" width="878.0" height="414.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="73.0" y="55.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="92.0" y="66.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">list.c</text> +<text x="934.0" y="66.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve" text-anchor="end">each line beside the first of its instructions</text> +<rect x="976.0" y="48.0" width="880.0" height="24.0" fill="#16245f"/> +<rect x="977.0" y="49.0" width="878.0" height="414.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="985.0" y="55.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="1004.0" y="66.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">disassembly</text> +<text x="1846.0" y="66.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve" text-anchor="end">reverse</text> +<rect x="931.0" y="79.0" width="2.0" height="186.0" fill="#3a4a8a"/> +<rect x="926.0" y="79.0" width="7.0" height="2.0" fill="#3a4a8a"/> +<rect x="926.0" y="263.0" width="7.0" height="2.0" fill="#3a4a8a"/> +<rect x="931.0" y="271.0" width="2.0" height="18.0" fill="#3a4a8a"/> +<rect x="926.0" y="271.0" width="7.0" height="2.0" fill="#3a4a8a"/> +<rect x="926.0" y="287.0" width="7.0" height="2.0" fill="#3a4a8a"/> +<rect x="931.0" y="295.0" width="2.0" height="18.0" fill="#3a4a8a"/> +<rect x="926.0" y="295.0" width="7.0" height="2.0" fill="#3a4a8a"/> +<rect x="926.0" y="311.0" width="7.0" height="2.0" fill="#3a4a8a"/> +<rect x="931.0" y="319.0" width="2.0" height="66.0" fill="#3a4a8a"/> +<rect x="926.0" y="319.0" width="7.0" height="2.0" fill="#3a4a8a"/> +<rect x="926.0" y="383.0" width="7.0" height="2.0" fill="#3a4a8a"/> +<rect x="931.0" y="391.0" width="2.0" height="66.0" fill="#3a4a8a"/> +<rect x="926.0" y="391.0" width="7.0" height="2.0" fill="#3a4a8a"/> +<rect x="926.0" y="455.0" width="7.0" height="2.0" fill="#3a4a8a"/> +<text x="86.0 98.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">20</text> +<text x="176.0 188.0 200.0 212.0 224.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">while</text> +<text x="248.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">(</text> +<text x="260.0 272.0 284.0 296.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">head</text> +<text x="308.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">)</text> +<text x="332.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">{</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">10</text> +<text x="1124.0 1136.0 1148.0 1160.0 1172.0 1184.0 1196.0 1208.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">48 85 ff</text> +<text x="1304.0 1316.0 1328.0 1340.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">test</text> +<text x="1388.0 1400.0 1412.0 1424.0 1436.0 1448.0 1460.0 1472.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rdi, rdi</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="119.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="119.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">13</text> +<text x="1124.0 1136.0 1148.0 1160.0 1172.0" y="119.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">74 20</text> +<text x="1304.0 1316.0" y="119.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">je</text> +<text x="1388.0 1400.0 1412.0 1424.0 1436.0 1448.0 1460.0" y="119.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">1001935</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="143.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="143.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">15</text> +<text x="1124.0 1136.0" y="143.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">55</text> +<text x="1304.0 1316.0 1328.0 1340.0" y="143.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">push</text> +<text x="1388.0 1400.0 1412.0" y="143.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rbp</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="167.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="167.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">16</text> +<text x="1124.0 1136.0 1148.0 1160.0 1172.0 1184.0 1196.0 1208.0" y="167.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">48 89 e5</text> +<text x="1304.0 1316.0 1328.0" y="167.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="1388.0 1400.0 1412.0 1424.0 1436.0 1448.0 1460.0 1472.0" y="167.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rbp, rsp</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="191.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="191.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">19</text> +<text x="1124.0 1136.0 1148.0 1160.0 1172.0" y="191.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">31 c0</text> +<text x="1304.0 1316.0 1328.0" y="191.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">xor</text> +<text x="1388.0 1400.0 1412.0 1424.0 1436.0 1448.0 1460.0 1472.0" y="191.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">eax, eax</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">1b</text> +<text x="1124.0 1136.0 1148.0 1160.0 1172.0 1184.0 1196.0 1208.0 1220.0 1232.0 1244.0 1256.0 1268.0 1280.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">0f 1f 44 00 00</text> +<text x="1304.0 1316.0 1328.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">nop</text> +<text x="1388.0 1400.0 1412.0 1424.0 1436.0 1448.0 1460.0 1472.0 1484.0 1496.0 1508.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">[rax + rax]</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">20</text> +<text x="1124.0 1136.0 1148.0 1160.0 1172.0 1184.0 1196.0 1208.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">48 89 c1</text> +<text x="1304.0 1316.0 1328.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="1388.0 1400.0 1412.0 1424.0 1436.0 1448.0 1460.0 1472.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rcx, rax</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="263.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="263.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">23</text> +<text x="1124.0 1136.0 1148.0 1160.0 1172.0 1184.0 1196.0 1208.0" y="263.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">48 89 f8</text> +<text x="1304.0 1316.0 1328.0" y="263.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="1388.0 1400.0 1412.0 1424.0 1436.0 1448.0 1460.0 1472.0" y="263.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rax, rdi</text> +<rect x="66.0" y="268.0" width="876.0" height="24.0" fill="#222742"/> +<rect x="944.0" y="268.0" width="32.0" height="24.0" fill="#222742"/> +<rect x="978.0" y="268.0" width="876.0" height="24.0" fill="#222742"/> +<rect x="978.0" y="268.0" width="24.0" height="24.0" fill="#e8c46a"/> +<path d="M996,280 l-10,-6 v12 Z" fill="#050a24"/> +<rect x="66.0" y="268.0" width="50.0" height="24.0" fill="#e8c46a"/> +<text x="86.0 98.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#050a24" xml:space="preserve" font-weight="bold">21</text> +<text x="224.0 236.0 248.0 260.0 272.0 284.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">struct</text> +<text x="308.0 320.0 332.0 344.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">node</text> +<text x="368.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">*</text> +<text x="380.0 392.0 404.0 416.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">next</text> +<text x="440.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">=</text> +<text x="464.0 476.0 488.0 500.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">head</text> +<text x="512.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">-</text> +<text x="524.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">></text> +<text x="536.0 548.0 560.0 572.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">next</text> +<text x="584.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">;</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">26</text> +<text x="1124.0 1136.0 1148.0 1160.0 1172.0 1184.0 1196.0 1208.0 1220.0 1232.0 1244.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="500">48 8b 7f 08</text> +<text x="1304.0 1316.0 1328.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="1388.0 1400.0 1412.0 1424.0 1436.0 1448.0 1460.0 1472.0 1484.0 1496.0 1508.0 1520.0 1532.0 1544.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rdi, [rdi + 8]</text> +<text x="1576.0 1588.0 1600.0 1612.0 1624.0 1636.0 1648.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">1004098</text> +<rect x="1666.0" y="279.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M1684,280 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="1690.0 1702.0 1714.0 1726.0 1738.0 1750.0 1762.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">1004070</text> +<path d="M1780,280 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="1787.0" y="279.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="1804.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">9</text> +<text x="86.0 98.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">22</text> +<text x="224.0 236.0 248.0 260.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">head</text> +<text x="272.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">-</text> +<text x="284.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">></text> +<text x="296.0 308.0 320.0 332.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">next</text> +<text x="356.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">=</text> +<text x="380.0 392.0 404.0 416.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">prev</text> +<text x="428.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">;</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">2a</text> +<text x="1124.0 1136.0 1148.0 1160.0 1172.0 1184.0 1196.0 1208.0 1220.0 1232.0 1244.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">48 89 48 08</text> +<text x="1304.0 1316.0 1328.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="1388.0 1400.0 1412.0 1424.0 1436.0 1448.0 1460.0 1472.0 1484.0 1496.0 1508.0 1520.0 1532.0 1544.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">[rax + 8], rcx</text> +<text x="86.0 98.0" y="335.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">20</text> +<text x="128.0 140.0 152.0 164.0 176.0 188.0 200.0 212.0 224.0 236.0 248.0 260.0 272.0 284.0" y="335.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">while (head) {</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="335.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="335.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">2e</text> +<text x="1124.0 1136.0 1148.0 1160.0 1172.0 1184.0 1196.0 1208.0" y="335.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">48 85 ff</text> +<text x="1304.0 1316.0 1328.0 1340.0" y="335.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">test</text> +<text x="1388.0 1400.0 1412.0 1424.0 1436.0 1448.0 1460.0 1472.0" y="335.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rdi, rdi</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="359.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="359.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">31</text> +<text x="1124.0 1136.0 1148.0 1160.0 1172.0" y="359.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">75 ed</text> +<text x="1304.0 1316.0 1328.0" y="359.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">jne</text> +<text x="1388.0 1400.0 1412.0 1424.0 1436.0 1448.0 1460.0" y="359.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">1001920</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="383.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="383.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">33</text> +<text x="1124.0 1136.0" y="383.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">5d</text> +<text x="1304.0 1316.0 1328.0" y="383.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">pop</text> +<text x="1388.0 1400.0 1412.0" y="383.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rbp</text> +<text x="86.0 98.0" y="407.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">26</text> +<text x="176.0 188.0 200.0 212.0 224.0 236.0" y="407.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">return</text> +<text x="260.0 272.0 284.0 296.0" y="407.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">prev</text> +<text x="308.0" y="407.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">;</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="407.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="407.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">34</text> +<text x="1124.0 1136.0" y="407.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">c3</text> +<text x="1304.0 1316.0 1328.0" y="407.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">ret</text> +<text x="" y="407.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500"></text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="431.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="431.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">35</text> +<text x="1124.0 1136.0 1148.0 1160.0 1172.0" y="431.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">31 c0</text> +<text x="1304.0 1316.0 1328.0" y="431.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">xor</text> +<text x="1388.0 1400.0 1412.0 1424.0 1436.0 1448.0 1460.0 1472.0" y="431.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">eax, eax</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="455.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="455.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">37</text> +<text x="1124.0 1136.0" y="455.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">c3</text> +<text x="1304.0 1316.0 1328.0" y="455.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">ret</text> +<text x="" y="455.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500"></text> +<text x="64.0" y="964.0" font-size="40" xml:space="preserve"><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">48 8b 7f 08</tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2"> is one instruction: </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">mov rdi, [rdi + 8]</tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">, line 21's</tspan></text> +<text x="64.0" y="1018.0" font-size="40" xml:space="preserve"><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">head->next</tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">. The line sits level with its code: they are one row.</tspan></text> +</svg> diff --git a/design/mock/33-aligned-480.png b/design/mock/33-aligned-480.png Binary files differnew file mode 100644 index 0000000..a54620d --- /dev/null +++ b/design/mock/33-aligned-480.png diff --git a/design/mock/33-aligned.png b/design/mock/33-aligned.png Binary files differnew file mode 100644 index 0000000..5ed74b0 --- /dev/null +++ b/design/mock/33-aligned.png diff --git a/design/mock/33-aligned.svg b/design/mock/33-aligned.svg new file mode 100644 index 0000000..5c46e27 --- /dev/null +++ b/design/mock/33-aligned.svg @@ -0,0 +1,198 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="1920" height="1080" viewBox="0 0 1920 1080"> +<defs><pattern id="hatch" width="20" height="20" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect width="5" height="20" fill="#3a4a8a"/></pattern><pattern id="hazard" width="24" height="24" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect width="24" height="24" fill="#050a24"/><rect width="12" height="24" fill="#ff6a4a"/></pattern></defs> +<rect width="1920" height="1080" fill="#0a1030"/> +<rect x="64.0" y="48.0" width="880.0" height="24.0" fill="#16245f"/> +<rect x="65.0" y="49.0" width="878.0" height="750.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="73.0" y="55.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="92.0" y="66.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">list.c</text> +<text x="934.0" y="66.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve" text-anchor="end">each line beside the first of its instructions</text> +<rect x="976.0" y="48.0" width="880.0" height="24.0" fill="#16245f"/> +<rect x="977.0" y="49.0" width="878.0" height="750.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="985.0" y="55.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="1004.0" y="66.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">disassembly</text> +<text x="1846.0" y="66.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve" text-anchor="end">reverse</text> +<rect x="931.0" y="79.0" width="2.0" height="186.0" fill="#3a4a8a"/> +<rect x="926.0" y="79.0" width="7.0" height="2.0" fill="#3a4a8a"/> +<rect x="926.0" y="263.0" width="7.0" height="2.0" fill="#3a4a8a"/> +<rect x="931.0" y="271.0" width="2.0" height="18.0" fill="#3a4a8a"/> +<rect x="926.0" y="271.0" width="7.0" height="2.0" fill="#3a4a8a"/> +<rect x="926.0" y="287.0" width="7.0" height="2.0" fill="#3a4a8a"/> +<rect x="931.0" y="295.0" width="2.0" height="18.0" fill="#3a4a8a"/> +<rect x="926.0" y="295.0" width="7.0" height="2.0" fill="#3a4a8a"/> +<rect x="926.0" y="311.0" width="7.0" height="2.0" fill="#3a4a8a"/> +<rect x="931.0" y="319.0" width="2.0" height="66.0" fill="#3a4a8a"/> +<rect x="926.0" y="319.0" width="7.0" height="2.0" fill="#3a4a8a"/> +<rect x="926.0" y="383.0" width="7.0" height="2.0" fill="#3a4a8a"/> +<rect x="931.0" y="391.0" width="2.0" height="66.0" fill="#3a4a8a"/> +<rect x="926.0" y="391.0" width="7.0" height="2.0" fill="#3a4a8a"/> +<rect x="926.0" y="455.0" width="7.0" height="2.0" fill="#3a4a8a"/> +<text x="86.0 98.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">20</text> +<text x="176.0 188.0 200.0 212.0 224.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">while</text> +<text x="248.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">(</text> +<text x="260.0 272.0 284.0 296.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">head</text> +<text x="308.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">)</text> +<text x="332.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">{</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">10</text> +<text x="1124.0 1136.0 1148.0 1160.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">test</text> +<text x="1208.0 1220.0 1232.0 1244.0 1256.0 1268.0 1280.0 1292.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rdi, rdi</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="119.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="119.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">13</text> +<text x="1124.0 1136.0" y="119.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">je</text> +<text x="1208.0 1220.0 1232.0 1244.0 1256.0 1268.0 1280.0" y="119.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">1001935</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="143.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="143.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">15</text> +<text x="1124.0 1136.0 1148.0 1160.0" y="143.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">push</text> +<text x="1208.0 1220.0 1232.0" y="143.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rbp</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="167.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="167.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">16</text> +<text x="1124.0 1136.0 1148.0" y="167.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="1208.0 1220.0 1232.0 1244.0 1256.0 1268.0 1280.0 1292.0" y="167.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rbp, rsp</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="191.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="191.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">19</text> +<text x="1124.0 1136.0 1148.0" y="191.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">xor</text> +<text x="1208.0 1220.0 1232.0 1244.0 1256.0 1268.0 1280.0 1292.0" y="191.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">eax, eax</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">1b</text> +<text x="1124.0 1136.0 1148.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">nop</text> +<text x="1208.0 1220.0 1232.0 1244.0 1256.0 1268.0 1280.0 1292.0 1304.0 1316.0 1328.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">[rax + rax]</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">20</text> +<text x="1124.0 1136.0 1148.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="1208.0 1220.0 1232.0 1244.0 1256.0 1268.0 1280.0 1292.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rcx, rax</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="263.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="263.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">23</text> +<text x="1124.0 1136.0 1148.0" y="263.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="1208.0 1220.0 1232.0 1244.0 1256.0 1268.0 1280.0 1292.0" y="263.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rax, rdi</text> +<rect x="66.0" y="268.0" width="876.0" height="24.0" fill="#222742"/> +<rect x="944.0" y="268.0" width="32.0" height="24.0" fill="#222742"/> +<rect x="978.0" y="268.0" width="876.0" height="24.0" fill="#222742"/> +<rect x="978.0" y="268.0" width="24.0" height="24.0" fill="#e8c46a"/> +<path d="M996,280 l-10,-6 v12 Z" fill="#050a24"/> +<rect x="66.0" y="268.0" width="50.0" height="24.0" fill="#e8c46a"/> +<text x="86.0 98.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#050a24" xml:space="preserve" font-weight="bold">21</text> +<text x="224.0 236.0 248.0 260.0 272.0 284.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">struct</text> +<text x="308.0 320.0 332.0 344.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">node</text> +<text x="368.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">*</text> +<text x="380.0 392.0 404.0 416.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">next</text> +<text x="440.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">=</text> +<text x="464.0 476.0 488.0 500.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">head</text> +<text x="512.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">-</text> +<text x="524.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">></text> +<text x="536.0 548.0 560.0 572.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">next</text> +<text x="584.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">;</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">26</text> +<text x="1124.0 1136.0 1148.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="1208.0 1220.0 1232.0 1244.0 1256.0 1268.0 1280.0 1292.0 1304.0 1316.0 1328.0 1340.0 1352.0 1364.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rdi, [rdi + 8]</text> +<text x="1576.0 1588.0 1600.0 1612.0 1624.0 1636.0 1648.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">1004098</text> +<rect x="1666.0" y="279.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M1684,280 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="1690.0 1702.0 1714.0 1726.0 1738.0 1750.0 1762.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">1004070</text> +<path d="M1780,280 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="1787.0" y="279.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="1804.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">9</text> +<text x="86.0 98.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">22</text> +<text x="224.0 236.0 248.0 260.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">head</text> +<text x="272.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">-</text> +<text x="284.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">></text> +<text x="296.0 308.0 320.0 332.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">next</text> +<text x="356.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">=</text> +<text x="380.0 392.0 404.0 416.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">prev</text> +<text x="428.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">;</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">2a</text> +<text x="1124.0 1136.0 1148.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="1208.0 1220.0 1232.0 1244.0 1256.0 1268.0 1280.0 1292.0 1304.0 1316.0 1328.0 1340.0 1352.0 1364.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">[rax + 8], rcx</text> +<text x="86.0 98.0" y="335.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">20</text> +<text x="128.0 140.0 152.0 164.0 176.0 188.0 200.0 212.0 224.0 236.0 248.0 260.0 272.0 284.0" y="335.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">while (head) {</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="335.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="335.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">2e</text> +<text x="1124.0 1136.0 1148.0 1160.0" y="335.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">test</text> +<text x="1208.0 1220.0 1232.0 1244.0 1256.0 1268.0 1280.0 1292.0" y="335.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rdi, rdi</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="359.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="359.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">31</text> +<text x="1124.0 1136.0 1148.0" y="359.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">jne</text> +<text x="1208.0 1220.0 1232.0 1244.0 1256.0 1268.0 1280.0" y="359.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">1001920</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="383.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="383.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">33</text> +<text x="1124.0 1136.0 1148.0" y="383.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">pop</text> +<text x="1208.0 1220.0 1232.0" y="383.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rbp</text> +<text x="86.0 98.0" y="407.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">26</text> +<text x="176.0 188.0 200.0 212.0 224.0 236.0" y="407.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">return</text> +<text x="260.0 272.0 284.0 296.0" y="407.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">prev</text> +<text x="308.0" y="407.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">;</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="407.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="407.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">34</text> +<text x="1124.0 1136.0 1148.0" y="407.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">ret</text> +<text x="" y="407.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500"></text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="431.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="431.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">35</text> +<text x="1124.0 1136.0 1148.0" y="431.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">xor</text> +<text x="1208.0 1220.0 1232.0 1244.0 1256.0 1268.0 1280.0 1292.0" y="431.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">eax, eax</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="455.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="455.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">37</text> +<text x="1124.0 1136.0 1148.0" y="455.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">ret</text> +<text x="" y="455.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500"></text> +<text x="128.0" y="479.2" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve">_init · no line</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="479.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="479.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">38</text> +<text x="1124.0 1136.0 1148.0 1160.0 1172.0 1184.0 1196.0" y="479.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">endbr64</text> +<text x="" y="479.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500"></text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="503.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="503.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">3c</text> +<text x="1124.0 1136.0 1148.0" y="503.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">sub</text> +<text x="1208.0 1220.0 1232.0 1244.0 1256.0 1268.0" y="503.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rsp, 8</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="527.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="527.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">40</text> +<text x="1124.0 1136.0 1148.0" y="527.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="1208.0 1220.0 1232.0 1244.0 1256.0 1268.0 1280.0 1292.0 1304.0 1316.0 1328.0 1340.0 1352.0 1364.0 1376.0 1388.0 1400.0 1412.0 1424.0" y="527.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rax, [rip + 0x1231]</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="551.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="551.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">47</text> +<text x="1124.0 1136.0 1148.0 1160.0" y="551.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">test</text> +<text x="1208.0 1220.0 1232.0 1244.0 1256.0 1268.0 1280.0 1292.0" y="551.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rax, rax</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="575.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="575.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">4a</text> +<text x="1124.0 1136.0" y="575.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">je</text> +<text x="1208.0 1220.0 1232.0 1244.0 1256.0 1268.0 1280.0" y="575.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">100194e</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="599.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="599.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">4c</text> +<text x="1124.0 1136.0 1148.0 1160.0" y="599.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">call</text> +<text x="1208.0 1220.0 1232.0" y="599.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rax</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="623.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="623.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">4e</text> +<text x="1124.0 1136.0 1148.0" y="623.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">add</text> +<text x="1208.0 1220.0 1232.0 1244.0 1256.0 1268.0" y="623.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rsp, 8</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="647.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="647.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">52</text> +<text x="1124.0 1136.0 1148.0" y="647.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">ret</text> +<text x="" y="647.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500"></text> +<text x="128.0" y="671.2" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve">_fini · no line</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="671.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="671.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">54</text> +<text x="1124.0 1136.0 1148.0 1160.0 1172.0 1184.0 1196.0" y="671.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">endbr64</text> +<text x="" y="671.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500"></text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="695.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="695.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">58</text> +<text x="1124.0 1136.0 1148.0" y="695.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">sub</text> +<text x="1208.0 1220.0 1232.0 1244.0 1256.0 1268.0" y="695.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rsp, 8</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="719.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="719.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">5c</text> +<text x="1124.0 1136.0 1148.0" y="719.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">add</text> +<text x="1208.0 1220.0 1232.0 1244.0 1256.0 1268.0" y="719.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rsp, 8</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="743.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="743.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">60</text> +<text x="1124.0 1136.0 1148.0" y="743.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">ret</text> +<text x="" y="743.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500"></text> +<text x="128.0" y="767.2" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve">strtol@plt-0x10 · no line</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="767.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="767.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">70</text> +<text x="1124.0 1136.0 1148.0 1160.0" y="767.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">push</text> +<text x="1208.0 1220.0 1232.0 1244.0 1256.0 1268.0 1280.0 1292.0 1304.0 1316.0 1328.0 1340.0 1352.0 1364.0" y="767.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">[rip + 0x1222]</text> +<text x="1016.0 1028.0 1040.0 1052.0 1064.0" y="791.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">10019</text> +<text x="1076.0 1088.0" y="791.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">76</text> +<text x="1124.0 1136.0 1148.0" y="791.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">jmp</text> +<text x="1208.0 1220.0 1232.0 1244.0 1256.0 1268.0 1280.0 1292.0 1304.0 1316.0 1328.0 1340.0 1352.0 1364.0" y="791.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">[rip + 0x1224]</text> +<text x="64.0" y="964.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">Line 20, </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">while (head)</tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">, has two runs: its test before the body</tspan></text> +<text x="64.0" y="1018.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">and again after it. Lines 23 to 25 have no code of their own.</tspan></text> +</svg> diff --git a/design/mock/intro.py b/design/mock/intro.py new file mode 100644 index 0000000..b9c7d7d --- /dev/null +++ b/design/mock/intro.py @@ -0,0 +1,217 @@ +#!/usr/bin/env python3 +"""The introduction: the frame built from its bytes up, on the recording of targets/list that mocks 9 to 21 use +(list-dbg.txt: the stack from rsp, the heap, the registers; the code's bytes from objdump of the binary). Four +instants of the build, each as the camera frames it. + + python3 -B intro.py # 29-intro-bytes, 30-intro-words, 31-intro-stack, 32-intro-code (.svg) +""" +import gen +import dense as D +import context as C +from context import (PAGE, RAISED, RULE, VELLUM, BRIGHT, DIM, FAINT, GOLD, KW, CODE, STACK, DATA, HEAP, READ, + A, S, ROW, TAG, PAD, MONO, BOLD, b, ph, mix, Svg) + +RSP = D.RSP +MAPS = [(0x1000000, 0x1001000, "list", "headers, read-only", VELLUM), (0x1001000, 0x1002000, "list", "code", CODE), + (0x1002000, 0x1003000, "list", "read-only data", VELLUM), (0x1003000, 0x1004000, "list", "data", DATA), + (0x1004000, 0x1025000, "heap", "malloc's", HEAP), None, + (0x7ffff7c00000, 0x7ffff7c24000, "libc.so.6", "read-only", VELLUM), + (0x7ffff7c24000, 0x7ffff7d9f000, "libc.so.6", "code", CODE), + (0x7ffff7d9f000, 0x7ffff7e15000, "libc.so.6", "read-only data", VELLUM), + (0x7ffff7e15000, 0x7ffff7e23000, "libc.so.6", "data", DATA), (0x7ffff7fbc000, 0x7ffff7fbe000, "[vdso]", "code", CODE), + (0x7ffff7fbf000, 0x7ffff7fec000, "ld.so", "code", CODE), (0x7ffff7ffb000, 0x7ffff7fff000, "ld.so", "data", DATA), + None, (0x7ffffffde000, 0x7ffffffff000, "[stack]", "the stack", STACK)] +CODE_BYTES = [(0x1001920, "48 89 c1"), (0x1001923, "48 89 f8"), (0x1001926, "48 8b 7f 08"), (0x100192a, "48 89 48 08"), + (0x100192e, "48 85 ff"), (0x1001931, "75 ed")] + + +def size(n): + for unit, k in (("TiB", 1 << 40), ("GiB", 1 << 30), ("MiB", 1 << 20), ("KiB", 1 << 10)): + if n >= k: + v = n / k + return ("%d %s" if v == int(v) or v >= 10 else "%.1f %s") % (v, unit) + return "%d B" % n + + +def segments(g, x, y, w, hot=()): + """`segments`: the process's address space as its mappings, low addresses on top, a row each: a bar in the + region's ink, the first address, what it is, its size; a hole between them one row, how big it is. Rows, not + a scale: the stack and the code are 127 TiB apart. hot: the mappings framed as read (a word just inked).""" + rows = len(MAPS) + y0 = C.panel(g, x, y, w, rows, "the address space", note="the recording's mappings, low on top") + last = None + for i, m in enumerate(MAPS): + yy = y0 + i * ROW + if m is None: # a hole: what is not mapped + nxt = next(mm for mm in MAPS[i + 1:] if mm) + hole = nxt[0] - last + g.path(f"M{x + 14},{yy + 8} l6,4 l-6,4 l6,4", FAINT, 2) + g.t(x + 40, b(yy), "nothing mapped · %s" % size(hole), 18, FAINT, "sans") + continue + lo, hi, name, what, ink = m + g.rect(x + 12, yy + 3, 8, ROW - 6, ink) + C.addr(g, x + 32, yy, lo, ink) + g.t(x + 32 + 13 * A, b(yy), name, S, VELLUM, MONO) + g.t(x + 32 + 13 * A + 11 * A, b(yy), what, 18, DIM, "sans") + g.t(x + w - 12, b(yy), size(hi - lo), S, FAINT, MONO, "end") + if lo in hot: + g.frame(x + 6, yy, w - 12, ROW, READ, 2) + last = hi + return y0 + + +def camera(g, k, cx, cy): + """The camera at scale k on the point (cx, cy) of the frame: all drawing after this is through it.""" + g.o.append(f'<g transform="translate({960 - cx * k},{468 - cy * k}) scale({k})">') + + +def raw_dump(g, x, y, rows, per=16, words=False, inked=False): + """The stack's bytes from rsp, `per` to a row; with words, each row's eight bytes read right to left as the + word they make, beside them, in the ink of what it points into when inked. Returns the rows' y.""" + ys = [] + for r in range(rows): + a0, yy = RSP + per * r, y + r * ROW + ys.append(yy) + C.addr(g, x, yy, a0, STACK if inked else FAINT) + bx = x + 12 * A + 12 + vals = [D.MEM.get(a0 + k, 0) for k in range(per)] + for k, v in enumerate(vals): + g.t(bx + k * 30 + (12 if k >= 8 else 0), b(yy), "%02x" % v, S, + mix(VELLUM, PAGE, 0.5) if words else VELLUM, MONO) + if words: + w_ = D.word(a0) + ink = (D.region(w_) or VELLUM) if inked else VELLUM + g.t(bx + per * 30 + 24, b(yy), "%x" % w_ if w_ else "0", S, ink, MONO) + return ys + + +def frame_bytes(name): + """The first picture: bytes, nothing else; the camera at x2 on them, where the stack panel will be built.""" + gen.W, gen.H = 1920, 1080 + g = Svg() + g.o.append('<g transform="translate(300,170) scale(2)">') + g.t(0, -10, "128 bytes, from where rsp points", 18, FAINT, "sans") + raw_dump(g, 0, 0, 8) + g.o.append("</g>") + gen.caption(g, [[("A running program is bytes in memory.",)], + [("These are 128 of them, sixteen to a row.",)]]) + g.save(name) + + +def frame_words(name): + """Eight bytes a row now, each row's word beside it, inked by where it points; the address space beside.""" + gen.W, gen.H = 1920, 1080 + g = Svg() + g.o.append('<g transform="translate(64,96) scale(1.35)">') + g.t(0, -10, "eight bytes a row, read right to left, a word", 18, FAINT, "sans") + ys = raw_dump(g, 0, 0, 16, per=8, words=True, inked=True) + k = 1 # 7fffffffece8: the return address, main+80 + g.frame(12 * A + 12 - 4, ys[k] - 1, 8 * 30 + 4, ROW + 2, READ, 2) + g.frame(12 * A + 12 + 8 * 30 + 24 - 6, ys[k] - 1, 7 * A + 12, ROW + 2, READ, 2) + segments(g, 12 * A + 12 + 8 * 30 + 24 + 13 * A + 36, -24, 560, hot={0x1001000}) + g.o.append("</g>") + gen.caption(g, [[("Eight bytes make a word, stored low byte first: read right to left,",)], + [("this one is ",), ("10018b0", "mono"), (", an address in the code, so it takes code's ink.",)]]) + g.save(name) + + +def frame_stack(name): + gen.W, gen.H = 1920, 1080 + g = Svg() + camera(g, 1.25, 976 + 440, 212 + 330) + C.RX = 976 + C.registers(g, 212, D.regs(False), D.FLAGS, {}) + rows = [r for r in __import__("map").slot_rows(16, 8)] + C.stack(g, 664, rows, __import__("map").frames_from(16, 8), rsp=RSP, roles=__import__("map").roles_from(16, 8)) + g.o.append("</g>") + gen.caption(g, [[("The same words as the stack: rsp points at its top, each word",)], + [("has its offset, a frame is a span, and the registers sit over it.",)]]) + g.save(name) + + +BYTES = {0x1001910: "48 85 ff", 0x1001913: "74 20", 0x1001915: "55", 0x1001916: "48 89 e5", 0x1001919: "31 c0", + 0x100191b: "0f 1f 44 00 00", 0x1001920: "48 89 c1", 0x1001923: "48 89 f8", 0x1001926: "48 8b 7f 08", + 0x100192a: "48 89 48 08", 0x100192e: "48 85 ff", 0x1001931: "75 ed", 0x1001933: "5d", 0x1001934: "c3", + 0x1001935: "31 c0", 0x1001937: "c3"} + + +def aligned(g, y, first, n, cur, cur_line, bytes_=False, title="reverse"): + """`aligned`: the source and the disassembly side by side, a table in address order: each source line level + with the first row of its run of instructions, a line that comes again (a second run) repeated faint at that + run, a line with no code of its own not drawn (its number missing says so), a row of no line (padding) with + nothing beside it. The pc's row and its line are one band across both columns: the alignment is the thread.""" + rows = [r for r in D.disasm_rows() if r[0] >= first][:n] + h = ph(n) + C.tag(g, 64, y, 880, h, "list.c", note="each line beside the first of its instructions") + C.tag(g, 976, y, 880, h, "disassembly", note=title) + y0 = y + TAG + PAD + seen, last_line = set(), None + lead = C.shared([r[0] for r in rows]) + i0 = 0 # each run's extent: a quiet bracket by the gutter, line to its last row + for i in range(1, n + 1): + if i == n or rows[i][2] != rows[i0][2]: + if rows[i0][2] is not None: + C.bracket(g, 932, y + TAG + PAD + i0 * ROW + 3, y + TAG + PAD + i * ROW - 3, RULE, 2, 5, side=-1) + i0 = i + for i, (a, func, line, mn, ops) in enumerate(rows): + yy = y0 + i * ROW + on = a == cur + if on: # one band through the gutter: the line and its instruction are one + g.rect(64 + 2, yy, 880 - 4, ROW, C.WASH) + g.rect(944, yy, 32, ROW, C.WASH) + g.rect(976 + 2, yy, 880 - 4, ROW, C.WASH) + g.rect(976 + 2, yy, 24, ROW, GOLD) + g.path(f"M{976 + 20},{yy + 12} l-10,-6 v12 Z", fill=gen.INK) + if line is not None and line != last_line: + again = line in seen + if line == cur_line and on: + g.rect(64 + 2, yy, 50, ROW, GOLD) + g.t(64 + 46, b(yy), str(line), S, gen.INK, BOLD, "end") + else: + g.t(64 + 46, b(yy), str(line), S, FAINT, MONO, "end") + text = D.SRC[line - 1] + C.c_line(g, 64 + 64, yy, text, 66) if not again else g.t(64 + 64, b(yy), text.strip(), S, FAINT, MONO) + seen.add(line) + elif line is None and (i == 0 or rows[i - 1][1] != func): + g.t(64 + 64, b(yy), "%s · no line" % func, 18, FAINT, "sans") + last_line = line + C.addr(g, 976 + 40, yy, a, CODE, lead=lead) + x = 976 + 40 + 8 * A + 12 + if bytes_: + g.t(x, b(yy), BYTES.get(a, ""), S, BRIGHT if on else DIM, MONO) + x += 15 * A + g.t(x, b(yy), mn, S, FAINT if mn == "nop" else KW, MONO if mn == "nop" else BOLD) + C.operands(g, x + 7 * A, yy, mn, ops, VELLUM) + if on: + C.chain(g, 976 + 600, yy, [(0x1004098, HEAP), (0x1004070, HEAP)], ("int", 9), {0: "read"} if False else None, + room=976 + 868) + return y0 + + +def frame_code(name): + """The code chapter: the source and its instructions side by side, each line level with its code, and the + instruction's bytes between the address and the mnemonic: an instruction is bytes too.""" + gen.W, gen.H = 1920, 1080 + g = Svg() + aligned(g, 48, 0x1001910, 16, 0x1001926, 21, bytes_=True) + gen.caption(g, [[("48 8b 7f 08", "mono"), (" is one instruction: ",), ("mov rdi, [rdi + 8]", "mono"), (", line 21's",)], + [("head->next", "mono"), (". The line sits level with its code: they are one row.",)]]) + g.save(name) + + +def frame_aligned(name): + """Mock 33: the `aligned` split, reverse and list_done, the pc at the load.""" + gen.W, gen.H = 1920, 1080 + g = Svg() + aligned(g, 48, 0x1001910, 30, 0x1001926, 21) + gen.caption(g, [[("Line 20, ",), ("while (head)", "mono"), (", has two runs: its test before the body",)], + [("and again after it. Lines 23 to 25 have no code of their own.",)]]) + g.save(name) + + +if __name__ == "__main__": + frame_bytes("29-intro-bytes") + frame_words("30-intro-words") + frame_stack("31-intro-stack") + frame_code("32-intro-code") + frame_aligned("33-aligned") diff --git a/design/motion.md b/design/motion.md index da903ab..bc58c6f 100644 --- a/design/motion.md +++ b/design/motion.md @@ -1238,6 +1238,60 @@ fault: the signal, rip and rsp at it, the exit status. And for the pair: the two recordings' stops matched by source line and by the loop's turn (i from its slot), so a step can be one line or one turn in both. +## A scene: the introduction + +The frame built from its bytes up, on the recording mocks 9 to 21 use +(`targets/list`, stopped at the load in `reverse`). Three short scenes, +not one: each is a chapter with its own opening and its own last picture, +which the next opens from, so a viewer can stop between them; together +104 s. Each view grows out of the rawer thing under it, in the order the +direction rule gives: memory first (the deepest), then the stack that is +made of it, then the code that acts on it, and the idea last, at the top. +Nothing cuts to a finished panel: the same bytes become the word, the +same word the row, the same row the slot. + +**Where the parts are.** Each part is built in the place it has in the +finished frame, never centred and moved later; the camera frames the part +being built (x2 for the first bytes, x1.5 for the words and the address +space, x1.25 for the stack and registers), so the frame's empty parts are +out of shot until the parts that fill them come. An introduction earns +that emptiness; nothing else does. A panel's tag and rule come last +(`frame up`): first the rows, then what they are called. + +**I. Memory** (43.9 s) + +| Lands | Leaves | Caption | Step, at | What plays | +| --- | --- | --- | --- | --- | +| 78 | 474 | A running program is bytes in memory. These are 128 of them, at the top of the stack. | 198 | the bytes fade in a row at a time (12 f, 2 f apart), no ink, the addresses faint; the camera at x2 (mock 29) | +| 492 | 852 | Eight bytes make a word, stored low byte first: read right to left. | 552 | `regroup` on the first word, walked; the other fifteen at a run | +| 870 | 1219 | Some words are addresses: numbers that name a place in this same memory. | 930 | one word framed as read, `10018b0` | +| 1237 | 1665 | The places are the program's mappings: its code, its data, the heap, the libraries, the stack. | 1297 | `segments` builds beside the words, a row at a time, top down; the camera out to x1.5 | +| 1683 | 2115 | A word takes the ink of the mapping it points into. That is where every colour here comes from. | 1743 | `ink`, word by word, 2 f apart, each with its mapping framed (mock 30) | +| 2133 | 2511 | Follow an address and you reach another word: the arrow, and the chain it makes. | 2193 | three words grow their chains (`extend`), walked | + +**II. The stack** (27.7 s), opening on I's last picture + +| Lands | Leaves | Caption | Step, at | What plays | +| --- | --- | --- | --- | --- | +| 78 | 478 | rsp holds the address of the top of the stack, this word. A push moves it down a word. | 198 | rsp's row arrives above, its pin lands on the top word; from the recording by instruction, the `push rbp` of `reverse`'s prologue replayed: rsp struck, the window sliding a slot | +| 496 | 791 | A call pushes the address to come back to: here, main+80. | 556 | the word `10018b0 main+80` framed; the offsets (`column`) | +| 809 | 1198 | A function's words are its frame: the caller's rbp saved, its locals, the way back. | 869 | roles (`column`), the spans, the rbp pin; the stack's tag (`frame up`) | +| 1216 | 1540 | The registers are the other place values live: seventeen of them. | 1276 | the registers built a row at a time over the stack, top down, then their tag, its legend the inks of I (mock 31) | + +**III. Code and meaning** (32.1 s) + +| Lands | Leaves | Caption | Step, at | What plays | +| --- | --- | --- | --- | --- | +| 78 | 378 | Code is bytes too. 48 8b 7f 08 is one instruction. | 198 | the code's bytes as a dump row in code's ink; one instruction's bytes framed | +| 396 | 796 | Decoded: mov rdi, [rdi + 8]. It came from line 21: each line sits level with its code. | 456 | `decode`, the instruction walked and its neighbours at a run; the source's lines arrive level with their runs: `aligned` (mock 32) | +| 814 | 1160 | rdi pointed at a list node on the heap. Its bytes, and drawn, the node. | 874 | `stack`: the aligned columns become the program column; the heap's dump arrives in the band's right half, then the nodes drawn from it (`establish`) | +| 1178 | 1491 | This is the whole frame. Every view in it is these same bytes. | 1238 | the camera out to x1; the minimap draws itself last: the working frame of mock 9, assembled | +| 1509 | 1809 | And all of it at once: the map. | 1569 | `surface` | + +Every caption is up its reading time and at most 450 f, leads its step +by 60 f (120 for a chapter's first), and changes only in a rest. The +rests are the chapters' ends: 2 s on each last picture. + ## Stills Seen while looking at motion; against `README.md`. |
