Skip to content

Lightweight modular C compiler with code optimization

License

Notifications You must be signed in to change notification settings

jelic98/c_compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License

C Compiler

Lightweight modular C compiler with code optimization build to support this context free grammar. Extracted notebooks with detailed code explanation are available here.

Usage

  1. Compile and run example C code
python3 main.py res/testX.c gen/testX.py

where X is chosen from [1-10]

  1. Generated code and AST are stored in out directory

Future work

  • Error handling
  • Multidimensional arrays
  • Unary increment/decrement operators
  • Switch statement
  • Additional stdlib functions

About

Lightweight modular C compiler with code optimization

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published