From d141d68713e0046447e9d9a3365045a6ddb73d65 Mon Sep 17 00:00:00 2001 From: Luis <42945842+ldiaz94@users.noreply.github.com> Date: Mon, 26 Oct 2026 17:28:14 +0000 Subject: [PATCH] compiler.md: the line table after names in the assembler --- diff --git a/doc/compiler.md b/doc/compiler.md index 700e038..539f1a1 100644 --- a/doc/compiler.md +++ b/doc/compiler.md @@ -1,6 +1,6 @@ # Reading the raz compiler -The compiler is twelve files of raz, about 12,800 lines of code (the +The compiler is twelve files of raz, about 12,900 lines of code (the budget is 14,000). It is its own compiler: a release of it, the one `BOOT` names, builds `src/`, and `make fixpoint` checks that what it makes makes itself again, byte for byte. Each release was built by the @@ -20,10 +20,10 @@ | `src/Scan.raz` | 1,170 | 966 | Symbols, literals, comments, positions | | `src/Sym.raz` | 815 | 652 | Types, objects, scopes, layout | | `src/Chunk.raz` | 364 | 280 | The compiled program: chunks, fixups, line notes | -| `src/X64.raz` | 1,621 | 1,330 | The instruction encoder, jumps within a procedure, the assembler | +| `src/X64.raz` | 1,777 | 1,450 | The instruction encoder, jumps within a procedure, the assembler | | `src/Gen.raz` | 2,846 | 1,989 | The stack machine, for x86-64: values, operations, checks, calls, frames | | `src/Item.raz` | 2,553 | 2,051 | Items: types, constants, variables, operators, conversions, calls | -| `src/Parse.raz` | 4,845 | 4,121 | Declarations, statements, expressions, built-ins, recovery, warnings | +| `src/Parse.raz` | 4,871 | 4,140 | Declarations, statements, expressions, built-ins, recovery, warnings | | `src/Link.raz` | 411 | 317 | Tree shaking, layout, patching, the places | | `src/Elf.raz` | 450 | 356 | Static and dynamic ELF, symbol table, line numbers | | `src/Host.raz` | 103 | 52 | The system running the compiler |