diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-07-05 00:15:55 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-07-05 00:15:55 +0300 |
| commit | 5b8c61db1fcfaa9733a5287672faa93d0085d718 (patch) | |
| tree | 6b449549f0ad4382926b35ce04f1455d3e09313b /README.md | |
| parent | e82c73d2b57e58894d8c93fc720559df6392d58b (diff) | |
| download | bcgen-5b8c61db1fcfaa9733a5287672faa93d0085d718.tar.gz bcgen-5b8c61db1fcfaa9733a5287672faa93d0085d718.zip | |
make repo a bit cleaner
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 29 |
1 files changed, 3 insertions, 26 deletions
@@ -1,29 +1,6 @@ # Byte code generator -Separate project for now, but essentially create a program that takes some input -(for example) -``` -addr(_GGG_) -{ - R0 = R1 + R2; - return NEXT_INSN; -} +A relatively simple script that generates pretty fast bytecode systems. +Relies on some non-standard C, but should in theory be completely portable. -addi(_GGi_) -{ - R0 = R1 + IMM; - return NEXT_INSN; -} - -beqi(RGi__) -{ - if (R0 == IMM) - return BRANCH; - - return NEXT_INSN; -} -``` - -and generates implementations with registers fixed and some kind of muxing -compilation functions that selects the correct implementation from some runtime -`compile_addr(1, 2, 3);`. +See `example` for how to use. |
