Skip to content

BUPT-a-out/compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compiler a.out

Project Structure

compiler/
├── modules/
│   ├── frontend/          # Sysy Frontend (submodule) 
│   ├── riscv64/           # RISC-V backend (submodule)
│   └── midend/            # Middle-end IR library (submodule)
└── src/
    └── main.cpp           # Main compiler entry point

Getting Started

Setup

  1. Clone the repository:

    git clone https://github.com/BUPT-a-out/compiler.git
    cd compiler
  2. Update submodules:

    git submodule update --init --recursive

Building

xmake

Testing

xmake test <sy_file|test_case_directory>

Compile and run test-script. To update test-script, delete the build directory and run xmake test again.

Debugging

xmake debug <sy_file>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •