Skip to content

Latest commit

History

113 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

To build the project, simply run make. Requires antlr to be in the classpath.
To run the compiler, run 'java Compile <args> <source>.mini'. This will send the assembly to stdout.
The available optimization options are:
-copy: Copy propogation
-useless: Useless code removal
-const: Constant folding and propogation
Additionally, the debug flag -dumpIL will cause the ILOC to be printed to the screen.
For convienience, the compile.sh script can be run from any directory and will compile the
given source with all optimizations. It should be run as 'bash compile.sh <source>' where source is the name of the source file without the .mini extension. This will put the
assembly to a file called <source>.s, and run gcc to create an executable called <source>.out.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages