| | @@ -1,6 +1,6 @@ |
| 1 | 1 | # Reading the raz compiler |
| 2 | 2 | |
| 3 | | -The compiler is twelve files of raz, about 12,800 lines of code (the |
| 3 | +The compiler is twelve files of raz, about 12,900 lines of code (the |
| 4 | 4 | budget is 14,000). It is its own compiler: a release of it, the one |
| 5 | 5 | `BOOT` names, builds `src/`, and `make fixpoint` checks that what it |
| 6 | 6 | makes makes itself again, byte for byte. Each release was built by the |
| | @@ -20,10 +20,10 @@ |
| 20 | 20 | | `src/Scan.raz` | 1,170 | 966 | Symbols, literals, comments, positions | |
| 21 | 21 | | `src/Sym.raz` | 815 | 652 | Types, objects, scopes, layout | |
| 22 | 22 | | `src/Chunk.raz` | 364 | 280 | The compiled program: chunks, fixups, line notes | |
| 23 | | -| `src/X64.raz` | 1,621 | 1,330 | The instruction encoder, jumps within a procedure, the assembler | |
| 23 | +| `src/X64.raz` | 1,777 | 1,450 | The instruction encoder, jumps within a procedure, the assembler | |
| 24 | 24 | | `src/Gen.raz` | 2,846 | 1,989 | The stack machine, for x86-64: values, operations, checks, calls, frames | |
| 25 | 25 | | `src/Item.raz` | 2,553 | 2,051 | Items: types, constants, variables, operators, conversions, calls | |
| 26 | | -| `src/Parse.raz` | 4,845 | 4,121 | Declarations, statements, expressions, built-ins, recovery, warnings | |
| 26 | +| `src/Parse.raz` | 4,871 | 4,140 | Declarations, statements, expressions, built-ins, recovery, warnings | |
| 27 | 27 | | `src/Link.raz` | 411 | 317 | Tree shaking, layout, patching, the places | |
| 28 | 28 | | `src/Elf.raz` | 450 | 356 | Static and dynamic ELF, symbol table, line numbers | |
| 29 | 29 | | `src/Host.raz` | 103 | 52 | The system running the compiler | |