My C compiler compiled itself
One of the most challenging projects of my life :)
My C compiler compiled itself launched on December 3, 2024 with 275 votes, #122 of 5,365 launches that month and more than 95% of that year's launches. The site was still online in September 2026, 1 year on.
In plain words
My C Compiler Compiled Itself is a personal programming project where the creator successfully built a C compiler capable of compiling its own source code. This represents a significant technical milestone in compiler development, as self-hosting compilers demonstrate that the implementation is sufficiently complete and robust to handle complex code. The project is shared on GitHub and represents a substantial achievement in systems programming.
written from the facts on this page · September 2026
From the sources
30 C Compiler. Contribute to keyvank/30cc development by creating an account on GitHub.
30cc (Pronounced as CCC , because in the Persian language, the number 30 is pronounced as C) is a toy C compiler written in C, which is strong enough to compile itself 🤝 This was my first attempt in writing a self-hosting software! What is a self-hosting software? 30cc emits x86-64 assembly as its output. The outputs are totally unoptimized, but that's fine, the project aims to be educational. Bootstrap the compiler by running make . This will generate 3 different versions of 30cc compiler: make run program=./examples/inp.c arguments=something Contribute Tests To run tests use python scripts/test.py update Then check the output of the tests. If you are on mac use ./scripts/test_mac.sh to…from github.com
Does a similar job
all alternatives →
My own C compiler (just for fun)2016 · github.com · ▲175rcor C compiler (under development). Contribute to rcorcs/rcc development by creating an account on GitHub.
Self Hosting C Compiler2022 · github.com · ▲5This is my hobby C compiler project. Decided to publish the code today, as it finally compiled itself. The readme on the linked GitHub page has a bit of information on how it works. I wrote the thing for fun, but if anyone gets a better understanding of the dark corners of C because of it, I am happy.
A work-in-progress C compiler from scratch2021 · github.com · ▲159Programming language that compiles into a x86 ELF executable. - riicchhaarrd/ocean

How to write a tiny compiler2017 · blog.klipse.tech · ▲224Write your own compiler: introduction. Code genetation. AST. Abstract syntax tree. lisp. javascript.
ShivyC – Hobby C compiler created in Python2018 · github.com · ▲120C compiler created in Python. Contribute to ShivamSarodia/ShivyC development by creating an account on GitHub.
More life & fun this month
the category →
A free city-building game in your browser. You are the mayor. You know what the city needs. Now get it past the zoning board, the neighbors, the appeals court and the next election.
Life & fun · 24h ago · permit.petercai.com
- IV
Life & fun · 13d ago · tanzaniaeducationproject.org

Turn a phone, tablet or TV into a sign. Type a message and it fills the screen: welcome signs, timers, Wi-Fi passwords and more. No app, no account, free.
Life & fun · 14d ago · bigwords.page

Play a free virtual guitar online with your keyboard or by touch. Slow songs down and see every chord, string and strum. Acoustic, classic, electric and bass.
Life & fun · 8d ago · guitoro.com

Carrier settings from iPhone, Pixel and Galaxy firmware, decoded and compared: APNs, VoLTE, 5G and Wi-Fi Calling per carrier, and what each build changed.
Life & fun · 12d ago · carrierexplode.com

Life & fun · 22d ago · space.bl2.net
Source: Show HN post ↗