Implementation of an x86 compiler for MiniJava, a subset of Java.
Clone, build and run:
git clone https://github.com/jenox/Compiler-Praktikum.git
cd Compiler-Praktikum
git submodule update --init --recursive
# Building the compiler is as easy as calling the build script
./build
# Use the run script to compile MiniJava code
./run TestProgram.java
The compiler needs the following dependencies:
- A recent Java SE version (at least JDK 8 is required)
- Swift 4.2 (if you do not already have this, we recommend using swiftenv to install it)
- gcc to assemble and link the MiniJava binaries