compiler/
├── modules/
│ ├── frontend/ # Sysy Frontend (submodule)
│ ├── riscv64/ # RISC-V backend (submodule)
│ └── midend/ # Middle-end IR library (submodule)
└── src/
└── main.cpp # Main compiler entry point
-
Clone the repository:
git clone https://github.com/BUPT-a-out/compiler.git cd compiler -
Update submodules:
git submodule update --init --recursive
xmakexmake test <sy_file|test_case_directory>Compile and run test-script. To update test-script, delete the build directory and run xmake test again.
xmake debug <sy_file>