/syc

A compiler for SysY (C subset)

Primary LanguageC++GNU General Public License v3.0GPL-3.0

ARMv7a上的SysY编译器

Build

mkdir build
cd build
cmake ..
make

Usage

syc [options] file

OPTIONS:
  -o <file>     Place the output into <file>.
  -O<number>    Set optimization level to <number>.
  -yydebug      Enable debug of yacc parsers.
  -print_ast    Print the AST ro stderr.
  -print_ir     Print the IR ro stderr.

IR操作数符号说明

符号 说明
% 局部符号
@ 全局符号
& 数组
^ 导出符号(不进行重命名)