nowfound

Life & fun · December 3, 2024

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.

Visit github.com ↗Alternativestop 2% of December 2024

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 · ▲175

    rcor C compiler (under development). Contribute to rcorcs/rcc development by creating an account on GitHub.

  • Self Hosting C Compiler2022 · github.com · ▲5

    This 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 · ▲159

    Programming language that compiles into a x86 ELF executable. - riicchhaarrd/ocean

  • myCompiler2019 · mycompiler.io · ▲122

    Run your favourite programming languages online

  • How to write a tiny compiler2017 · blog.klipse.tech · ▲224

    Write your own compiler: introduction. Code genetation. AST. Abstract syntax tree. lisp. javascript.

  • ShivyC – Hobby C compiler created in Python2018 · github.com · ▲120

    C compiler created in Python. Contribute to ShivamSarodia/ShivyC development by creating an account on GitHub.

More life & fun this month

the category →

Source: Show HN post ↗

Launched alongside, December 2024

the whole month →
  • Remy AI▲2,170

    Anyone can sleep and recover better

    AI · 2024 · apps.apple.com

  • Remento▲1,681

    The AI biographer for loved ones

    AI · 2024 · remento.co

  • Aimfox▲1,213

    Built for LinkedIn outreach, made to close deals

    Growth · 2024 · aimfox.com

  • Stackfix▲1,112

    Compare software in seconds

    AI · 2024 · stackfix.com

  • Coval▲1,012

    Simulation & evals to ship delightful voice & chat AI agents

    AI · 2024 · coval.ai

  • VocAdapt▲961

    Master languages with AI-adapted authentic content

    Life & fun · 2024 · vocadapt.com