Skip to content

A Helper for the Compiler Course in Beihang University

Notifications You must be signed in to change notification settings

Eadral/CCHelper

Repository files navigation

CCHelper

A Helper for the Compiler Course in Beihang University

Features

  • Verify your compiler's correctness
  • Support Windows and Linux.
  • Scoring system for optimization.

Usage

MIPS test: python mips_test.py [dir] test_set_mips

Single MIPS test: python mips_test.py [dir] test_set_mips [testfilename]

Performance test: python mips_test.py [dir] optimization_test_set speed

Grammar test: python pat.py testfiles_grammar [dir] [dir] [dir...]

Error test: python test.py [dir] test_set_error

dir: a directory in CCHelper that has your .exe or .out file

Example

python mips_test.py zyc_mips_ref test_set_mips
python mips_test.py zyc_mips_ref optimization_test_set speed

FAQ

Feel free to contact me

About

A Helper for the Compiler Course in Beihang University

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published