Skip to content

rozentill/Small-C-Compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Small-C-Compiler

The main idea and work explanation can be found in report.pdf.

All the files contain:Small.l,Small.y,treeNode.h,README.md,makefile,testcases,CodeGeneration.c,avlTree.h,checkReserved.c

## How to run :

Firstly,input "sh build.sh" in the root directory.

Secondly, ./Parser "Source File Name" "Output File Name" to generate syntax tree.

Thirdly, ./scc "Source File Name" "Output File Name" to generate llvm codes.

Last, lli xx.ll to run the program by llvm.

About

Compiler Principle's Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published