summaryrefslogtreecommitdiff
path: root/chapter21/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'chapter21/README.md')
-rw-r--r--chapter21/README.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/chapter21/README.md b/chapter21/README.md
index 80304c1a..a3ae6cb8 100644
--- a/chapter21/README.md
+++ b/chapter21/README.md
@@ -17,6 +17,18 @@ in the linear revision history and
Here is the [complete language grammar](docs/21-grammar.md) for this chapter.
+Two phases extend the pipeline: `Encoding` turns allocated nodes into bytes,
+and `Export` resolves relocations in memory or writes an ELF object. For example:
+
+```java
+code.driver(CodeGen.Phase.Encoding, "x86_64_v2", "SystemV");
+code.exportELF("program.o");
+```
+
+The CLI uses the same driver. `--dump-after-iter`, the other phase dump options,
+and `--dump-time` expose the stages without duplicating their ordering in the
+command-line frontend.
+
## From machine nodes to bytes
Instruction selection chooses the operation and register constraints. Register