Fedjmike/mini-c
Dr Strangehack, or: how to write a self-hosting C compiler in 10 hours
This is a C compiler designed to be incredibly small and self-hosting. It takes C source code as input and produces 32-bit x86 assembly code, which can then be compiled and linked into an executable. This tool is for compiler developers or hobbyists interested in understanding the fundamental mechanics of how a compiler works.
531 stars. No commits in the last 6 months.
Use this if you are a compiler developer or enthusiast who wants to learn how a C compiler can be implemented from scratch with minimal code.
Not ideal if you need a full-featured C compiler for production-level software development or for compiling complex C applications.
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