Skip to content

A simple compiler front-end for the Java language, which generates an LLVM-IR bitcode output and developed in C++.

License

Notifications You must be signed in to change notification settings

mathieudelehaye/JavaToLLVMIRCompiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JavaToLLVMIRCompiler

A compiler front-end for the Java language.

It compiles a simple Java program, as an input, and generate an intermediate representation in LLVM-IR bitcodes (rather than the usual JVM bytecodes).

The compiler has been developed in C++.

It uses the following components:

Use:

cd /project/root

# Build the tools
./run_build.sh

# Run the lexer (standalone mode)
./build/bin/lexer test_data/hello.java > lexer_output.txt

# Run the parser
./build/bin/parser test_data/hello.java > parser_output.txt 2> parser_error.txt 

# Build the output
clang output.ll -o output-j -Wno-override-module

About

A simple compiler front-end for the Java language, which generates an LLVM-IR bitcode output and developed in C++.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published