Skip to content

Latest commit

 

History

30 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SysYc

Compiler of Sysy2022, a programming language for ..what?

使用方法

cargo run -- <input_file>,编译指定的文件。

输出模式:

--parse: 输出文法解析的结果。

--llvm: 输出 llvm IR

--riscv: 输出最终的代码。

若不指定输出模式则会发生错误。

参数

-o: 指定输出文件,未指定则在标准输出流输出。

-Ox:指定优化方式/等级(未实现)

Usage

cargo run -- <input_file> to complie the file inputed.

Output Mode:

--parse: Output the result of grammar prasing.

--llvm: Output in llvm IR.

--riscv: Output riscv asm code as the final output.

An error occurs in case of no output mode is specified.

Arguments

-o: Specify the output file. Will output into standard output if not specified.

-Ox: Specify the optimization level. Not implemented yet!

About

compiler of Sysy2022, a programming language for ..what?

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages