Skip to content

ecumene/rust-c-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learning to write compilers

Following this tutorial

Running

Compile

cargo run -- test.c > test.s
gcc test.s -o test

Run and Print Exit Code

./test
echo $?

Testing Code

cargo test

or

cargo watch -x test

to hotreload

About

A toy c compiler, written in Rust https://norasandler.com/2017/11/29/Write-a-Compiler.html#anchor3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published