Skip to content

Chenning-Tao/SysY-Compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

113 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SysY Compiler

A compiler designed for SysY2022.

Compile and run

cd to the project directory

mkdir build
cd build
cmake ..
make

generate object file

./compiler test.c

This command will generate a object file(.o).

Then use clang to generate the executable file. (currently we don't need external library)

clang-14 output.o -no-pie -o program

Generate static library

clang-14 -c sylib.c -o sylib
ar cr sylib.a sylib

About

ZJU 2022 Compiler Project

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors