rcor C compiler (under development)
C++ Yacc Lex C Makefile LLVM
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
docs
include
src
test
.gitignore
Makefile
README.md
test.sh
tmp.txt

README.md

rcc: rcor C compiler

A C compiler under development

by ROCHA, Rodrigo Caetano

DONE

  • Scanner: lexical analyser
  • Parser: syntactic analyser
  • Macro pre-processor (e.g.: #include, #define)
  • Basic data-type structures (e.g.: primitives, struct)
  • Basic identifier structures (e.g.: function names, variable names)
  • AST: build the abstract syntax tree (almost finished)
  • CGen: generate C code from the AST

Under Development

  • TypeCheck: perform semantic analysis
  • LLGen: generate LLVM IR code from the AST

TODO

  • RIR: design and generate an intermediate representation
  • RIR backend: generate a RIR backend for different architectures
  • Optimizations on both AST and RIR level

Building Dependencies