Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/utam0k/r9cc
Toy C compiler
https://github.com/utam0k/r9cc
compiler rust
Last synced: about 6 hours ago
JSON representation
Toy C compiler
- Host: GitHub
- URL: https://github.com/utam0k/r9cc
- Owner: utam0k
- License: mit
- Created: 2018-08-19T11:38:06.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-06-21T00:38:30.000Z (over 3 years ago)
- Last Synced: 2024-12-20T21:58:13.311Z (6 days ago)
- Topics: compiler, rust
- Language: Rust
- Homepage: https://www.utam0k.jp/en/blog/2018/10/12/r9cc/
- Size: 245 KB
- Stars: 244
- Watchers: 7
- Forks: 27
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
r9cc C Compiler
===============r9cc is a toy project of compiler.
This is the [9cc](https://github.com/rui314/9cc) Rust version.# Usage
Rust 2018 edition is required.- Compile
```
$ cargo run c_file_path
```- Test
```
$ make test
```# Current status
- [x] Four arithmetic operations
- [x] Logical operation
- [x] Local variable
- [x] Global variable
- [x] Function call
- [x] Function definition
- [x] Array
- [x] Pointer
- [x] ++/--
- [x] char/int type
- [x] String literal
- [x] Strunct
- [x] extern
- [x] Comment
- [x] #include
- [x] #define
- [x] \_\_LINE\_\_# Design
If you want more information, I think you should refer to [README.md](https://github.com/rui314/9cc/blob/master/README.md) of [9cc](https://github.com/rui314/9cc).# Reference
Special thanks to [9cc](https://github.com/rui314/9cc) and author [rui314](https://github.com/rui314)