- Notifications
You must be signed in to change notification settings - Fork2
Sitaras/miniJava-compiler
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This is a MiniJava-to-LLVM-IR compiler project, written in Java (with the help of JFlex, JavaCUP and JTB), originallyintroduced as an assignment for thecompilers course (NKUA). Details about the projectcan be foundhere (sections homework 2 & 3). I thankStefanos Baziotis for hisMiniJava testsuitecontribution!
Part 1: MiniJava Static Checking (Semantic Analysis)
Part 2: Generating intermediate code (MiniJava -> LLVM)
In order to see that the output of the produced LLVM IR files is the same as compiling the input java file with javac and executing it with java, you will need Clang with version >=4.0.0.
sudo apt update && sudo apt install clang-4.0makeTo perform semantic analysis on all files given as arguments:
java [MainClassName] [file1] [file2] ... [fileN]To execute .ll files:
clang-4.0 -o out1 ex.ll./out1About
🦖| Mini Java Compiler.
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.