A compiler for MiniJava, a subset of Java. MiniJava is designed so that its programs can be compiled by a full Java compiler like javac.
make: Compiles all files for the MiniJava compilermake test: Runs the MiniJava compiler in every test file and creates the filetest_results.txtwith the results in the root directorybash ./runLLVMTests.sh: Runs all .ll files generated bymake testand outputs to the Standard Output.make clean: Deletes all files created bymake
make
java Main <inputFile1>.java <inputFile2>.java ...
Install clang: sudo apt update && sudo apt install clang
clang -o out1 <inputFile1>.ll
./out1
If the MiniJava compiler type checking is successful, it will output the field and method offsets for each class in the Standard Output.