Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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.