Skip to content

A toy compiler that translates SysY (a subset of C language) into ARMv7a assembly.

License

Notifications You must be signed in to change notification settings

luooofan/hblzbd_compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hblzbd_compiler

compiler architecture

Build

make -j

Run

Usage: ./compiler [-S] [-l log_file] [-o output_file] [-O level] input_file

./compiler -S -o testcase.s testcase.sy

Test

Usage: test_script.py [-h] [-l] [-a] [-r] [-v] [-L LINKED_LIBRARY_PATH] test_path

python3 ./utils/test_script.py "./functional_test/*.sy" -rv
python3 ./utils/test_script.py "./performance_test/*.sy" -rav

About

A toy compiler that translates SysY (a subset of C language) into ARMv7a assembly.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages