C compiler for GAIA CPU written in OCaml.
- OCaml >= 4.0.1
- ocamlbuild >= 4.0.1
- Clang (for preprocessing and syntax check)
To run the tests, use the following command.
You can compile C file by the following command.
a.out will be created. It runs on the simulator.
./bin/sim -simple a.out
You can check generated assembly by
./bin/ucc -S ./test/printf.c
If you want to see other options, please use
- http://kw-udon.hatenablog.com/entry/2015/03/19/171921 (written in Japanese)