Kira is an example compiler for PKU compiler course, it can compile SysY language into Koopa IR and RISC-V assembly.
kira-rs is written in Rust, for C++ example, please see kira-cpp.
# 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.SSee CHANGELOG.md.
Copyright (C) 2022-2025 MaxXing. License GPLv3.