Skip to content

billsjchw/tigerc-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tigerc-rs

This project is a compiler of a toy language implemented in Rust, using Cranelift.

The toy language, named Tiger, is introduced in the book Modern Compiler Implementation in C.

The compiler generates x86_64 ELF files.

Usage

Compile the Tiger program into a relocatable object file with cargo run and then link it with src/tiger.c to get the executable object file.

cargo run -- prog.tig -o prog.o
cc src/tiger.c prog.o -o prog

About

Compiler of a toy language implemented in Rust, using Cranelift

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors