From 887875959aa84af92291db334898aaa20956e632 Mon Sep 17 00:00:00 2001 From: allexanderbergmans Date: Fri, 3 Jul 2026 12:17:10 +0200 Subject: init --- gen/README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 gen/README.md (limited to 'gen/README.md') diff --git a/gen/README.md b/gen/README.md new file mode 100644 index 0000000..958814c --- /dev/null +++ b/gen/README.md @@ -0,0 +1,14 @@ +# Code Generators (C Programs) + +Each generator reads the ISA definitions (`../isa/`) and produces C source +code for the assembler, disassembler, simulator, and documentation. + +| Generator | Input | Output | +|------------------|-------------------|----------------------------------| +| `tablegen/` | ISA encoding | Instruction decode tables | +| `decoder/` | Encoding tables | Decode switch/case source | +| `encoder/` | Opcode tables | Assembler encode logic | +| `disassembler/` | Opcode tables | Disassembler string formatting | +| `opcodes/` | Opcode YAML | `opcodes.h`, `opcodes.c` | +| `abi/` | ABI spec | Calling convention stubs | +| `docs/` | ISA YAML | RST/Markdown/HTML ISA manual | -- cgit v1.3