Skip to content

elnaske/tricc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C Compiler

A minimal compiler for a subset of C written in Rust.

Progress (more for my own reference than anything)

  • Compiler driver (gcc preprocessor, assembler, and linker)
  • Unary operators
  • Binary operators
  • Logical and relational operators
  • Local variables
  • If statements and conditional expressions
  • Compound statements / scopes
  • Loops
  • Functions
  • ...

Acknowledgements

I'm building this compiler in an incremental fashion as presented in the book Writing a C Compiler by Nora Sandler, as well as the paper by Abdulaziz Ghuloum on Scheme which inspired it. Additionally, I also frequently reference implementation details from wrecc, which is also a C compiler written in Rust.

About

A toy, Rust-implemented C compiler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors