Skip to content

The example SysY compiler Kira for PKU compiler course, written in Rust.

License

Notifications You must be signed in to change notification settings

pku-minic/kira-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kira (Rust version)

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.

Usage

# 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.

Copyright and License

Copyright (C) 2010-2022 MaxXing. License GPLv3.

About

The example SysY compiler Kira for PKU compiler course, written in Rust.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages