Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pku-minic/kira-rs
The example SysY compiler Kira for PKU compiler course, written in Rust.
https://github.com/pku-minic/kira-rs
Last synced: 1 day ago
JSON representation
The example SysY compiler Kira for PKU compiler course, written in Rust.
- Host: GitHub
- URL: https://github.com/pku-minic/kira-rs
- Owner: pku-minic
- License: gpl-3.0
- Created: 2022-01-20T02:52:58.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-06-02T04:21:25.000Z (over 1 year ago)
- Last Synced: 2024-08-02T07:02:19.923Z (3 months ago)
- Language: Rust
- Size: 160 KB
- Stars: 46
- Watchers: 1
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Kira (Rust version)
Kira is an example compiler for PKU compiler course, it can compile SysY language into [Koopa IR](https://github.com/pku-minic/koopa) and RISC-V assembly.
`kira-rs` is written in Rust, for C++ example, please see [`kira-cpp`](https://github.com/pku-minic/kira-cpp).
## Usage
```sh
# compiler `input.c` to Koopa IR
cargo run -- -koopa input.c -o output.koopa
# compiler `input.c` to RISC-V assembly
cargo run -- -riscv input.c -o output.S
```## Changelog
See [CHANGELOG.md](CHANGELOG.md).
## Copyright and License
Copyright (C) 2010-2022 MaxXing. License GPLv3.