/hblzbd_compiler

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

Primary LanguageC++MIT LicenseMIT

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