30cc
github.com · Open source · Maintained
A C compiler that can compile itself
- Developer tools
- Open source
- C
- Day-7 check
- Day-30 check
- compiler
- self hosting
- educational
- c compiler
- self hosting compiler
- toy compiler
- x86 64 assembly
- compiler education
- Stars
- 314
- Forks
- 13
- Open issues
- 9
- Last commit
- Found
- 24 months ago
GitHub figures as of . They are context, not a ranking.
30cc is a C compiler written in C that has successfully compiled itself, which the author calls one of the most challenging projects of their life. The repository holds the source code. It suits programmers interested in how C compilers work.
Repository description on GitHub: “30 C Compiler”
What it does
- Compiles C source code to x86-64 assembly output
- Compiles itself, so it is self-hosting
- Bootstraps with make to produce three compiler builds
- Emits unoptimized code, which suits its educational aim
Good for
- Study how a self-hosting C compiler is built
- Bootstrap a compiler from gcc with make
- Read a small C compiler that emits x86-64 assembly
Suits: Programmers curious about how C compilers work.
Worth knowing: The generated code is unoptimized, which the author accepts for an educational project.
What you can try
Read the README on GitHub and install from source.
Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.
Found vs. released
Kip first saw 30cc on , when keyvank posted it to Show HN. GitHub listed no published releases for keyvank/30cc when checked , so the project may ship straight from its main branch. The repository was created .
Day-7 and day-30 updates
Day 7 no new release
- No tagged release was published in the first 7 days after it was found (GitHub release dates).
- Show HN discussion at check time: 275 points, 128 comments. API record
Checked , later than day 7 because tracking began after.
Day 30 no new release
- No tagged release was published in the first 30 days after it was found (GitHub release dates).
- Show HN discussion at check time: 275 points, 128 comments. API record
Checked , later than day 30 because tracking began after.
Release timeline every entry links to its source
- Repository created on GitHub: keyvank/30cc
- Found: keyvank posted it to Show HN. Show HN
- Day-7 check recorded by Kip (details)
- Day-30 check recorded by Kip (details)
Quick answers
- When was 30cc released?
- No dated release record is available. Kip found it on Show HN on 3 Dec 2024.
- Is 30cc open source?
- Its source is public on GitHub at keyvank/30cc under the MIT licence.
- What does 30cc run on?
- Command line.
- Is 30cc free?
- It is open source, so the code is free to read and run; check the licence for terms.
- Is 30cc still maintained?
- It had a commit or release in the last year, though not in the last 90 days, as of the latest check.
Provenance
| Source | Record | Last checked |
|---|---|---|
| Show HN | listing official API record | |
| GitHub repository | keyvank/30cc REST API record | |
| GitHub Releases | release list REST API record |
Stable ID hn-42311031. Summary written by KipFound’s editor.
Share
Similar tools
Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.