An opensource Cpp compiler for compiling latest versions of cpp programs, built as an alternative for Dev Cpp. This is mainly built for compiling latest cpp versions in the computer labs at my college because VS Code is bulky for them but feel free to check it out and use yourself.
- Lexical analysis
- Parsing using recursive descent
- AST and symbol table generation
- Semantic checks
- Intermediate Code Generation (IR)
- Basic Optimization
- Assembly/Machine Code Generation
See docs/architecture.md
for full phase diagram and flow.
mkdir build && cd build
cmake ..
make
./cpp-compiler ../test/samples/hello.cpp