BUAA-Compiler-Judger
- A small test script (Compile + Run on MARS + Generate equivalent cpp code & standard output + Diff result) for BUAA Compiler course fall19+.
Enviroment
- Ubuntu 18.04 (WSL)
- clang 6.0.0 / g++ 7.4.0 (Recommend because it's as lame as our compiler so that we can get the same result.)
How to use
- Copy
redefio.h
andtest.sh
to the appropriate position, make sure you have the same directory structure (runtree
) as below:<your working directory> │ ├── lib │ └── Mars_Compiler.jar ├── test │ └── codegen │ └── redefio.h └── test.sh
- Run
./test.sh [<case id>]
(It'd only take a few sec :)
TODO
- Add
syscall
type checking and counting. - Update diff part.
- Add security branches.
License
- GPL v3.0