aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: ca029f6fab82eda7ffcdb202f37e21d29b8a7922 (plain)
1
2
3
4
5
This is a C compiler for the MAR ([Much-Assembly-Required](https://muchassemblyrequired.com/)) virtual machine, written in C. It is pretty unsophisticated at the moment, but should be able to compile VERY rudimentary C programs, like those in `test/`. Please patch in HWI calls yourself at the moment...

Note that even though this claims to be a "C compiler" written in C, it is *VERY* far from being able to compile itself.

The compiler depends on `flex` and `bison`, and of course a working C compiler (tested with `clang` and `gcc`; the makefile uses `gcc`). Install those, then run `make` to build, and `./ccomp` to run.