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.S
See CHANGELOG.md.
Copyright (C) 2010-2022 MaxXing. License GPLv3.