Fedjmike/mini-c
Dr Strangehack, or: how to write a self-hosting C compiler in 10 hours
Generates 32-bit x86 assembly via single-pass compilation with interleaved code generation and parsing, delegating assembly/linking to GCC. Supports core C constructs (functions, control flow, operators, arrays, pointers) within a typeless integer-only system. Achieves minimal implementation size by including only features that reduce total code footprint, with a self-hosting bootstrap chain verified through compilation of itself.
531 stars. No commits in the last 6 months.
Stars
531
Forks
58
Language
C
License
—
Category
Last pushed
Apr 15, 2022
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/Fedjmike/mini-c"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
javaparser/javaparser
Java 1-25 Parser and Abstract Syntax Tree for Java with advanced analysis functionalities.
asmjit/asmjit
Low-latency machine code generation
lioncash/biscuit
A runtime code generator for RISC-V
llvm-hs/llvm-hs-pretty
Pretty printer for LLVM AST to Textual IR
bytexenon/Tiny-Lua-Compiler
⛄Possibly the smallest Lua compiler ever