Skip to content
/ r9cc Public
forked from utam0k/r9cc

This is fork of r9cc, Toy C compiler, by utam0k

License

Notifications You must be signed in to change notification settings

GnicoJP/r9cc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

r9cc C Compiler

r9cc is a toy project of compiler.
This is the 9cc Rust version.

Usage

Nightly version after 2018-10-1 is required.

  • Compile
$ cargo run c_file_path
  • Test
$ make test

Current status

  • Four arithmetic operations
  • Logical operation
  • Local variable
  • Global variable
  • Function call
  • Function definition
  • Array
  • Pointer
  • ++/--
  • char/int type
  • String literal
  • Strunct
  • extern
  • Comment
  • #include
  • #define
  • __LINE__

Design

If you want more information, I think you should refer to README.md of 9cc.

Reference

Special thanks to 9cc and author rui314

About

This is fork of r9cc, Toy C compiler, by utam0k

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 93.0%
  • C 6.4%
  • Other 0.6%