The best c compilers, according to hackers
18 c compilers were recommended on Hacker News between November 2025 and November 2026. We rank them by how many separate people recommend each one, and 4 earn the Hacker Approved badge.
Top picks
The three most recommended c compilers with the badge. Each figure is 10 people. RecommendsCriticizes One comment
Memory-safe recompile of legacy code
Recompiles existing C and C++ code with strong memory safety and high compatibility, making legacy software safer without a rewrite, at the cost of speed, memory and garbage collection.
Very fast compile times
Tiny, very fast C compiler people use for quick development builds and embedding. Caveats: generated machine code is poor and it is not a drop-in replacement for other compilers.
Works well on Windows and Win32
Small, free C compiler that builds lean Windows and Win32 programs with no dependencies. Critics note it has had no release in about eight years.
All 18 c compilers, ranked
Select a column heading to sort. Approval share is recommenders out of everyone who gave an opinion; the tick on each bar marks the 2 to 1 line the badge needs. Months counts the months, out of 13, in which someone recommended it.
| Rank | |||||||
|---|---|---|---|---|---|---|---|
| 1 | Fil-C | 160 | 60 | 73% | 13 | — | Approved |
| 2 | Claude's C Compiler | 39 | 83 | 32% | 5 | — | — |
| 3 | Visual C++ | 29 | 17 | 63% | 12 | — | — |
| 4 | Tiny C Compiler (TCC) | 22 | 3 | 88% | 9 | — | Approved |
| Tied 5 | Microsoft Visual C++ compiler (MSVC) | 20 | 29 | 41% | 9 | — | — |
| Tied 5 | Tiny C Compiler | 20 | 2 | 91% | 7 | — | Approved |
| 7 | DJGPP | 13 | 2 | 87% | 5 | — | Approved |
| 8 | SDCC Small Device C Compiler | 12 | 4 | 75% | 3 | — | — |
| 9 | MinGW | 10 | 13 | 43% | 4 | — | — |
| Tied 10 | CompCert | 9 | 2 | 82% | 8 | — | — |
| Tied 10 | SectorC C compiler | 9 | 4 | 69% | 2 | — | — |
| Tied 12 | xcc C compiler | 8 | 0 | 100% | 4 | — | — |
| Tied 12 | Kefir C compiler | 8 | 1 | 89% | 2 | — | — |
| Tied 12 | C89cc.sh | 8 | 2 | 80% | 1 | — | — |
| 15 | LLVM-MOS | 7 | 3 | 70% | 2 | — | — |
| 16 | Intel C++ compiler | 6 | 7 | 46% | 6 | — | — |
| Tied 17 | w64devkit | 5 | 0 | 100% | 4 | — | — |
| Tied 17 | Anthropic C compiler | 5 | 29 | 15% | 3 | — | — |
How we rank
Rank is the number of separate people who recommend a product in a Hacker News comment over the past year. Someone who praises the same c compiler in five threads counts once.
The badge goes to c compilers that at least 10 people recommend, with recommenders outnumbering critics at least 2 to 1, recommended in at least 4 of the 13 months.
Rankings are never for sale. We may earn a commission when you buy through our links. It never changes the order.