Skip to content

dmcdo/appel-minijava-compiler

Repository files navigation

This is a compiler that compiles MiniJava to SPARC code built following
Modern Compiler Implementation in Java by Andrew Appel up to Chapter 12.

Building:
$ export SUPPORT=support.jar  # https://cs.fit.edu/~ryan/cse4251/support.jar
$ make javacc                 # Build only the javacc files.
$ make compiler               # Build only the compiler.
$ make assembler              # Build the compiler and assembler.
$ make                        # Same as 'make assembler.'

Usage:
./compile Test.java
./assemble Test.s

About

MiniJava to SPARC assembly compiler written in Java and JavaCC

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages