Translates a subset of pre-processed C90 into Python.
Build using the command:
make bin/c_compiler
The translator function is invoked using the flag --translate
, with the source file and output file specified on the command line:
bin/c_compiler --translate [source-file.c] -o [dest-file.py]
A script to run some tests: ./run.sh
Reads C source code from a file, and write MIPS assembly to another file.
Built using the command:
make bin/c_compiler
The compilation function is invoked using the flag -S
, with the source file and output file specified on the command line:
bin/c_compiler -S [source-file.c] -o [dest-file.s]
A script to run some tests: ./mipstesting.sh