From 110c231ba5bff5b65ca4891de7fcd8c68d1029bf Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 16 Oct 2017 03:30:52 -0700 Subject: 4074 --- subx/Readme.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/subx/Readme.md b/subx/Readme.md index dddccb91..22a1878b 100644 --- a/subx/Readme.md +++ b/subx/Readme.md @@ -10,13 +10,17 @@ Bytecode interpreter for a subset of the 32-bit x86 ISA. unsigned numbers) * Only relative jump instructions (with 8-bit or 16-bit offsets). -Basically a minimum basis set that a compiler for Mu can target. This isn't -meant to run arbitrary binaries, just those generated by our compiler, -allowing better tests for the compiler, access to processor/memory state -without getting bogged down in details of the ELF format, ABI, STABS debugging -format, etc., etc. +These rules yield a clean instruction set. We don't care about running +arbitrary binaries, just those generated by our Mu compiler. -To run tests: +Targeting a VM enables more comprehensive tests for the compiler, without +requiring access to processor/memory state without getting bogged down in +details of the ELF format, ABI, STABS debugging format, etc., etc. + +Having the VM implement a real (and ubiquitous) instruction set makes it easy +to generate native binaries outside of tests. + +Just unit tests so far: ``` ./subx test -- cgit 1.4.1-2-gfad0