From 1c2de9a926924a5eaf5000b695fdb33ad5664da1 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sat, 21 Oct 2023 23:27:33 +0100 Subject: Wrote a quick tutorial on targeting the virtual machine --- README.org | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.org b/README.org index 8c3f306..562ad67 100644 --- a/README.org +++ b/README.org @@ -4,3 +4,11 @@ A stack based virtual machine in C11. Deals primarily in bytes, doesn't make assertions about typing and is very simple to target. +* Instructions to target +You'll need [[file:src/inst.h][inst.h]] for the instruction API. You +must convert user programs to instructions via ~inst_t~, then emit +bytecode via ~insts_write_bytecode*~. + +This is all that is necessary to create a language which targets this +virtual machine. To execute that bytecode, a user must use my virtual +machine program. -- cgit v1.2.3-13-gbd6f