Skip to content
/ CminusC Public

CminusC the simplified C compiler -- refined from the USTC compiler course.

Notifications You must be signed in to change notification settings

regymm/CminusC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compiler Cminus

It was programming homework for the principles and techniques of compilers course in USTC: the main task is to write a compiler for simplified C language, cminus.

I cleaned up the source code so the structure is now better for further development.

Compile

mkdir build
cd build
cmake ..
make

Run

./cminusc ../testcase/gcd.cminus
../testcase/gcd
(input 45 150)
(output 15)

For the original project, see CompilersHomework (Which is now private. Email me if you need).

I do not own all these code: some are by my teammates and the teaching assistants.

About

CminusC the simplified C compiler -- refined from the USTC compiler course.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages