Skip to content

IamNailong/chibcpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chibcpp - A C Compiler Implementation in C++

A C++ implementation inspired by chibicc.

Project Overview

This is an educational C compiler project that demonstrates compiler construction principles using modern C++. The compiler translates C expressions into x86-64 assembly code.

Build & Usage

# Build
mkdir -p build && cd build
cmake ..
make

# Run
./bin/chibcpp "1+2*3"

# Test
./test_compiler.sh

Development Log

This section documents the incremental development process, explaining what each commit accomplishes.

651a633 - Support basic numeric expressions

25b4797 - Refactor parser to integrate lexer

5ba64ca - Add LLVM-style debugging and CLI parser

About

cpp version for chibcc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors