Skip to content

elnaske/c-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 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)
  • Minimal compiler that can return constants
    • Lexer
    • Parser
    • Assembly generation
  • Unary operators
  • Binary operators
  • Logical and relational operators
  • Local variables
  • If statements and conditional expressions
  • ...

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors