Kcc project claims self-hosting C17 compiler built with Claude
state: seedheat: mediumuncertainty: highrelevance: highllm-assisted-development coding-capability compilersCuauhtémoc Pacheco
What is this?
kcc is a C17 compiler implemented in ARM64 assembly and published by Cuauhtémoc Pacheco in the LiterateDrivenDevelopment GitHub repository. Its README says the implementation is a roughly 1,000-page literate program, co-authored with Claude, and claims that kcc compiles itself to a byte-identical binary, cross-compiles to x86-64, builds Lua, SQLite and DOOM, and can boot a Linux kernel. The repository describes build and test targets, but the supplied sources do not include independent test results or confirm the reported development cost or absence of agent tooling. The September/October 2026 Hacker News listings and later Show HN post point to the same project, not separate verification.
Why it matters
If the project’s claims hold up, kcc is a striking example of LLM-assisted development producing substantial low-level software: a self-hosting compiler written in assembly, with a literate source designed for people and AI collaborators. That could broaden who can attempt complex systems projects and make transparent, document-first workflows more practical. The evidence here is the author’s project documentation, however, not independent confirmation of compiler correctness, portability, or the claimed development process and cost.
Current assessment
New project announcement: Cuauhtémoc Pacheco’s kcc repository presents a C17 compiler written in ARM64 assembly as a literate program using weft. The README identifies the .weft files as the source of truth and describes targets for differential tests against clang, diagnostics, generated-code execution, self-hosting and a Linux-based full verification suite. It claims self-compilation to a byte-identical binary, x86-64 cross-compilation, builds of Lua, SQLite and DOOM, and Linux-kernel booting; reproducing some checks requires Docker and qemu. These are first-party project claims, not independently established outcomes in the supplied evidence. The sources also do not substantiate the roughly $100/month figure or the claim that development used no agentic tooling. One Hacker News comment raises the possibility that the model drew on existing compiler knowledge, but supplies no evidence resolving that question. Treat kcc as a consequential capability signal worth tracking, not yet as proof that plain LLM-assisted work reliably produces standards-conforming production compilers. Useful follow-up evidence would include independent clean builds, conformance results, reproducible demonstrations and details of the human/model workflow.
Measured heat
now 0 pts/hpeak 0 pts/hcomments 0/hpeers p10momentum: steady1 platformsage 1340h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion
How the heat travelled
Evidence (3) — ⭐ canonical anchor
| source | object | author | score | comments |
| 🟧 hn ⭐ | Kcc – a C17 compiler built solo with an LLM on $100/month, no agentsRetrieved article excerptOpen article · Retrieved 2026-10-01T20:35:58.452815+00:00 # kcc — A Formal C17 Compiler in ARM64 Assembly
**kcc** is a formal C17 compiler written entirely in ARM64 assembly, and set
down as a single **literate program** using [weft](https://github.com/temo-pacheco/weft),
a metalanguage built to be authored and read by human and AI collaborators
alike. Every instruction is explained in prose before it is written in code.
It checks C against the Standard, optimises it, allocates registers, and emits
native machine code; it compiles itself to a byte-identical binary; and it
**cross-compiles to x86-64** (Linux and macOS). It builds and runs Lua, SQLite,
and DOOM — and boots a Linux kernel.
The whole book **is** the compiler (≈1000 pages): read
**[kcc.pdf](https://github.com/LiterateDrivenDevelopment/kcc/blob/main/kcc.pdf)** in this repository, also published on
[Releases](https://gitlab.polinesso.org/literate-programming/kcc/-/releases),
or build it yourself (see below). Learn more about Literate Driven Development
at <https://literatedriven.com>.
## The `.weft` files are the only source of truth
Everything the machine builds — the assembly modules, the verification scripts,
and the `Makefile` itself — is **generated** by tangling the literate sources.
You never edit generated files; you edit the book.
```
kcc.weft master document (LaTeX preamble + @i includes)
literate/ all the chapters (prose + code fragments)
assets/ cover art (SVG → the PDF covers)
kcc.pdf the typeset book (committed; rebuilt with `make pdf`)
README.md this file
LICENSE MIT
```
The typeset book, `kcc.pdf`, **is** committed, so the repository always carries
a readable copy of the current text. Rebuild it with `make pdf`.
## Build
There is a one-time bootstrap: because the `Makefile` is itself tangled from the
book, you generate it first, then use it.
```
# 1. Tangle sources, scripts, and the Makefile into gen/ (and ./Makefile).
weft -p gen/ --mkdirs kcc.weft
# 2. Build the compiler (gen/kcc).
make
# 3. Compile something with it.
./gen/kcc gen/hello.c -o gen/hello && ./gen/hello
```
`-p gen/` prepends `gen/` to every tangle output; `--mkdirs` creates the
directories. The generated tree lives entirely under `gen/` (plus the root
`Makefile`); `make clean` removes it and the command above regenerates it.
### Common targets
| Target | What it does |
| --- | --- |
| `make` / `make build` | assemble + link `gen/kcc` |
| `make difftest` | compile a corpus with kcc **and** clang, compare |
| `make diagtest` / `make warntest` | invalid programs are rejected; `-Wall` warns |
| `make test-codegen` / `make e2e` / `make interop` | run generated programs |
| `make selfhost-*` | recompile a module in C with kcc, relink, verify |
| `make meta-c` | full self-host fixpoint on Linux (needs Docker + qemu) |
| `make ci` | the complete verification suite |
| `make pdf` | weave the book and typeset `kcc.pdf` |
The verification scripts locate their own base directory, so they work under any
`-p` prefix.
## The book
`make pdf` weaves the `.weft` sources to `kcc.tex` and typesets `kcc.pdf` with
LuaLaTeX. The covers are regenerated from `assets/*.svg` when `rsvg-convert` is
available. The resulting `kcc.pdf` is committed alongside the sources, so the
book can be read straight from the repository; tagged versions are also
published as a **Release** asset on GitLab.
## Prerequisites
- **weft** ≥2.0.0 (the literate tool).
- A C toolchain's `as` and `ld` (Xcode command-line tools on macOS).
- For the book: a TeX distribution with LuaLaTeX and `latexmk` — a full
[TeX Live](https://tug.org/texlive/), or the lightweight
[TinyTeX](https://yihui.org/tinytex/) (a minimal TeX Live) — and, optionally,
`rsvg-convert` for the covers.
- For `make meta-c` and the kernel-boot reproduction: Docker and qemu-user.
## License
MIT — see [LICENSE](https://github.com/LiterateDrivenDevelopment/kcc/blob/main/LICENSE). Copyright © 2026 Cuauhtémoc Pacheco, co-authored
with an AI collaborator (Claude). | temo_pacheco | 19 | 26 |
| 🟧 hn | Maylang – A self-hosted systems language compiled with LLMs | mirged | 2 | 1 |
| 🟧 hn | Show HN: Kcc, a C compiler built solo with an LLM on $100/mo boot Linux kernel | temo_pacheco | 2 | 0 |
Interpretation history
2026-10-30T11:24:03Z
audience grounding: high — If the project’s claims hold up, kcc is a striking example of LLM-assisted development producing substantial low-level software: a self-hosting compiler written in assembly, with a literate source designed for people and AI collaborators. That could broaden who can attempt complex systems projects and make transparent, document-first workflows more practical. The evidence here is the author’s project documentation, however, not independent confirmation of compiler correctness, portability, or the claimed development process and cost.
Decision trace
- 10-30 22:24groundIf the project’s claims hold up, kcc is a striking example of LLM-assisted development producing substantial low-level software: a self-hosting compiler written in assembly, with a literate source des
- 10-30 07:30review_dormant28 days without material information; scheduled checks stopped
- 10-29 06:32drop_targetsquiet through full ladder or over cap 8
- 10-22 05:34drop_targetsquiet through full ladder or over cap 8
- 10-07 06:28repriceThe new attach is temo_pacheco re-submitting kcc as a second Show HN that flopped (2/0) — same first-party source, not a new evidence line, so no material change; the original thread's growth to
- 10-07 06:27attachshared external link with case evidence
- 10-07 06:25propose_attachshared external link with case evidence
- 10-04 03:57review_screenThe only change is a new third-party comment (pjmlp) offering opinion on the significance of the ARM64-assembly aspect; it adds no new fact, independent build/conformance result, contradiction, or fir
- 10-02 15:20repriceThe Maylang attach does not hold as corroboration: its submitter states it was built 'with LLM agent harnesses', placing it beside CCC on the agents side of the controlled pair — which leave
- 10-02 14:27attachSecond independent LLM-authored self-hosting compiler, corroborating the pattern that plain LLM-assisted development produces substantial systems software.
- 10-02 14:23propose_attachSecond independent LLM-authored self-hosting compiler, corroborating the pattern that plain LLM-assisted development produces substantial systems software.
- 10-02 11:21sensor_dirtycomment_update
- 10-02 07:35groundDirectly stresses his load-bearing 'agents don't hallucinate less, they loop better' thesis (Agentic Coding Plain and Spicy, Three Ingredients Framework): kcc claims the same verificati
- 10-02 07:27createFirst-party artifact with runnable verification targets making a distinctive no-agents claim that complements rather than duplicates the Bez episode.