Skip to content

care0717/rugcc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rugcc

CircleCI

C compiler made by Rust

How to use

# Build compiler. It is generated in ./target/debug/rugcc.
cargo build
# Please enter: ./target/debug/rugcc <your code>. It generates assembly.
./target/debug/rugcc 'int main() { int a; int b; a=2; b=5+1; return a*b; }'
# or
./target/debug/rugcc "`cat ./examples/hello.c`"

Please see example in test.sh

refarence

https://github.com/rui314/9cc

About

Toy C compiler made by Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published