Skip to content

akouthoofd/MiniJava_Compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MiniJava_Compiler

MiniJava Compiler - Parser generated with ANTLR_v4 and bytecode with Jasmin

Soot Optimization

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>

  1. Main in optimization folder
  2. -f class is optional (Explicitly states to generate class files for final output)
  3. -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.

About

MiniJava Compiler - Parser generated with ANTLR_v4 and bytecode with Jasmin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published