Skip to content

saturn691/rrc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rustic Rust Compiler

Rustic Rust Compiler (rrc) is a Rust to LLVM-IR compiler.

Usage

To build the compiler, run the following command:

cargo build

To run the compiler, run the following command:

target/debug/rrc --input "tests/_example/return_0.rs" --output "./return_0.ll"

This can be ran locally using LLVM and Clang. Run the following command:

# Use LLVM to compile to assembly
llc "./return_0.ll"

# Use Clang (or GCC) to compile to bytecode
clang return_0.s

# Run the program
./a.out

# (Optional) Check the return code
echo $? 

Documentation

See docs/README.md

License

Licensed under MIT.

See LICENSE for details.

About

Rust to LLVM IR compiler

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published