Skip to content

LesleyLai/mcc

Repository files navigation

Mini C Compiler (MCC)

Working-in-progress C compiler written in C. My goal is to make it able to self-host.

Current Features

The mcc compiler follows a standard batch-compiler architecture, consisting of the following components:

mcc invokes gcc for preprocessor, assembler, and linker. Only Linux is supported and tested.

At present, only a small subset of the C language is supported. You can find example programs demonstrating the compiler’s capabilities in the test/test_data directory. Additionally, mcc does not yet implement any optimization and currently produces extremely inefficient code with no regard for performance.

Releases

No releases published

Packages

No packages published