Compiler of mini-c language, a subset of C language.
Cauim de Souza Lima
Victor Hugo Vianna
ocamlbuild
To compile:
make
To run:
./mini-c <input mini-C file>
An output assembly file will be generated with the same name and in the same directory as the input.
To run the tests:
cd tests
./run -all ../mini-c
- All declarations must be done in the beggining of each function (first declare, then assign).
- Variables can be either ints or pointers to structs.
- More information can be found here.