MiniJava Compiler - Parser generated with ANTLR_v4 and bytecode with Jasmin
My bytecode optimization can be found in src/optimization. Optimization is done -via-shimple.
The optimization reduces known variables to single constants and any if statements that can reduced to true or false are remove accordingly.
Run command: java Main -f class -via-shimple -process-dir <dir with class files in it>
- Main in optimization folder
- -f class is optional (Explicitly states to generate class files for final output)
- -process-dir will run class files in the specific folder
Note: If you try to run a directory with more class files in lower folders you'll need additional changes to acknowledge the package difference.