-rw-r--r-- | .gitignore | 3L |
-rw-r--r-- | Makefile | 97L |
-rw-r--r-- | demo/life.src | 106L |
-rw-r--r-- | docs/bnf.txt | 101L |
-rw-r--r-- | docs/llvm-live-ranges-of-physical-registers--lattner-2006.txt | 85L |
-rw-r--r-- | docs/notebook.md | 271L |
-rw-r--r-- | docs/notes.oberon.compiler.txt | 29L |
-rw-r--r-- | docs/notes.project.oberon.txt | 83L |
-rw-r--r-- | docs/notes.txt | 96L |
-rw-r--r-- | docs/project-oberon-risc5-architecture.txt | 137L |
-rw-r--r-- | docs/resources-and-inspiration.md | 79L |
-rw-r--r-- | docs/todo.md | 52L |
-rw-r--r-- | docs/why-write-a-compiler.md | 85L |
-rw-r--r-- | external/oberon-risc-emu/LICENSE | 15L |
-rw-r--r-- | external/oberon-risc-emu/risc5emu-fp.c | 172L |
-rw-r--r-- | external/oberon-risc-emu/risc5emu-fp.h | 32L |
-rw-r--r-- | external/oberon-risc-emu/risc5emu.c | 362L |
-rw-r--r-- | external/oberon-risc-emu/risc5emu.h | 19L |
-rw-r--r-- | llvm-toys/Makefile | 22L |
-rw-r--r-- | llvm-toys/bigfunc.c | 4L |
-rw-r--r-- | llvm-toys/call.c | 12L |
-rw-r--r-- | llvm-toys/fib.c | 14L |
-rw-r--r-- | llvm-toys/gcd.c | 11L |
-rw-r--r-- | llvm-toys/hello.c | 13L |
-rw-r--r-- | llvm-toys/ssa2.c | 13L |
-rw-r--r-- | llvm-toys/struct.c | 12L |
-rw-r--r-- | readme.md | 55L |
-rw-r--r-- | src/codegen-ir.c | 1055L |
-rw-r--r-- | src/codegen-risc5-simple.c | 833L |
-rw-r--r-- | src/compiler.c | 2916L |
-rw-r--r-- | src/compiler2.c | 2310L |
-rw-r--r-- | src/fs.c | 74L |
-rw-r--r-- | src/fs.h | 30L |
-rw-r--r-- | src/ir.h | 117L |
-rw-r--r-- | src/mkinstab.c | 38L |
-rw-r--r-- | src/preproc.c | 31L |
-rw-r--r-- | src/r5d.c | 94L |
-rw-r--r-- | src/r5e.c | 117L |
-rw-r--r-- | src/rewriter.c | 822L |
-rw-r--r-- | src/risc5.h | 4L |
-rw-r--r-- | src/risc5dis.c | 80L |
-rw-r--r-- | src/risc5ins.txt | 34L |
-rw-r--r-- | test/1000-return-42.log | 1L |
-rw-r--r-- | test/1000-return-42.src | 3L |
-rw-r--r-- | test/1010-func-call.log | 1L |
-rw-r--r-- | test/1010-func-call.src | 7L |
-rw-r--r-- | test/1011-func-call-forward.log | 1L |
-rw-r--r-- | test/1011-func-call-forward.src | 10L |
-rw-r--r-- | test/1012-func-call-builtin.log | 4L |
-rw-r--r-- | test/1012-func-call-builtin.src | 6L |
-rw-r--r-- | test/1020-math-1.log | 10L |
-rw-r--r-- | test/1020-math-1.src | 22L |
-rw-r--r-- | test/1021-numbers.log | 24L |
-rw-r--r-- | test/1021-numbers.src | 27L |
-rw-r--r-- | test/1024-xorshift32.log | 65L |
-rw-r--r-- | test/1024-xorshift32.src | 20L |
-rw-r--r-- | test/1025-fibonacci.log | 25L |
-rw-r--r-- | test/1025-fibonacci.src | 17L |
-rw-r--r-- | test/1026.fib.iter.log | 25L |
-rw-r--r-- | test/1026.fib.iter.src | 23L |
-rw-r--r-- | test/1030-flow-control.log | 14L |
-rw-r--r-- | test/1030-flow-control.src | 45L |
-rw-r--r-- | test/1031-logical-and-or.log | 64L |
-rw-r--r-- | test/1031-logical-and-or.src | 56L |
-rw-r--r-- | test/1040-structs.log | 13L |
-rw-r--r-- | test/1040-structs.src | 52L |
-rw-r--r-- | test/1041-arrays.log | 18L |
-rw-r--r-- | test/1041-arrays.src | 26L |
-rw-r--r-- | test/1042-arrays2.log | 9L |
-rw-r--r-- | test/1042-arrays2.src | 16L |
-rw-r--r-- | test/1050-enums.log | 10L |
-rw-r--r-- | test/1050-enums.src | 20L |
-rw-r--r-- | test/2000-err-decl-mismatch-type.src | 6L |
-rw-r--r-- | test/2001-err-decl-mismatch-return.src | 5L |
-rw-r--r-- | test/2002-err-decl-mismatch-count.src | 6L |
-rw-r--r-- | test/2003-err-decl-mismatch-array.src | 8L |
-rw-r--r-- | test/2010-err-array-init-too-large.src | 2L |
-rw-r--r-- | test/2011-err-array-oob-const.src | 6L |
-rw-r--r-- | test/2020-err-u32-overflow.src | 3L |
-rw-r--r-- | test/2021-err-u32-hex-overflow.src | 3L |
-rw-r--r-- | test/2022-err-u32-bin-overflow.src | 3L |
-rw-r--r-- | test/2030-err-bad-break.src | 4L |
-rw-r--r-- | test/2031-err-bad-continue.src | 4L |
-rwxr-xr-x | test/runtest.sh | 52L |
-rwxr-xr-x | test/runtest2.sh | 54L |
-rwxr-xr-x | tools/diff-codegen | 7L |
-rwxr-xr-x | tools/save-tests | 5L |