Skip to content

DevinZ1993/CS215-Small-C-Compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Small-C Compiler for MIPS32

A toy compiler that compiles Small-C source code into MIPS code, refactored from my previous course project.

Workflow

Architecture

Dependencies

java-cup-11a.jar

JFlex.jar

Build and Run

To build the compiler, put dependent library jar files in lib/ and run:

make -C src/
ant

To compile a source file in the directory in/, run the following command:

export CLASSPATH='bin:lib/JFlex.jar:lib/java_cup_11a.jar'
java com.gmail.devinz1993.smallc.Compiler [FILE_NAME]

You can also run my batch test using the following command:

./run.sh

About

A simple compiler for a C-like high-level programming language

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages