Skip to main content
ClaudeWave
EN, English
anthropics / Tools

claudes-c-compiler

Claude Opus 4.6 wrote a dependency-free C compiler in Rust, with backends targeting x86 (64- and 32-bit), ARM, and RISC-V, capable of compiling a booting Linux kernel.

  • 2.8k stars
  • 252 forks
  • 62 open issues
  • Language: Rust
  • License: CC0-1.0
  • updated

Install

Terminal
git clone https://github.com/anthropics/claudes-c-compiler
  1. Clone the repository.
  2. Follow the README for installation and usage instructions.

Editor's note

CCC (Claude's C Compiler) is a complete C compiler written from scratch in Rust by Claude Opus 4.6, targeting x86-64, i686, AArch64, and RISC-V 64. The project implements every component internally, including a frontend, SSA-based intermediate representation, optimizer, code generator, peephole optimizers, assembler, linker, and DWARF debug info generation, producing ELF executables without any external toolchain. It functions as a drop-in GCC replacement, accepting familiar flags like -O2, -g, -fPIC, and -shared, and can be pointed at existing Make, CMake, or autoconf build systems directly. The compiler has successfully built PostgreSQL (passing all 237 regression tests), SQLite, Redis, the Linux kernel, CPython, QEMU, and over 150 other real-world projects. This repository demonstrates Claude's autonomous coding capability via the Claude API, with a human providing only test cases rather than interactive debugging. Anthropic explicitly cautions against production use, as the code has not been validated for correctness and is confirmed to work only on Linux hosts.

README

Tools overview

README preview not available. Visit the repo on GitHub for full documentation.
Use cases
Frequently asked

What people ask about claudes-c-compiler

What is anthropics/claudes-c-compiler?

anthropics/claudes-c-compiler is tools for the Claude AI ecosystem. Claude Opus 4.6 wrote a dependency-free C compiler in Rust, with backends targeting x86 (64- and 32-bit), ARM, and RISC-V, capable of compiling a booting Linux kernel. It has 2.8k GitHub stars and its last recorded update is dated 2026-02-05.

How do I install claudes-c-compiler?

You can install claudes-c-compiler by cloning the repository (https://github.com/anthropics/claudes-c-compiler) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.

Is anthropics/claudes-c-compiler safe to use?

Our security agent has analyzed anthropics/claudes-c-compiler and assigned a Trust Score of 84/100 (tier: Trusted). See the full breakdown of passed checks and flags on this page.

Who maintains anthropics/claudes-c-compiler?

anthropics/claudes-c-compiler is maintained by anthropics. The last recorded GitHub activity is dated 2026-02-05, with 62 open issues.

Are there alternatives to claudes-c-compiler?

Yes. On ClaudeWave you can browse similar tools at /categories/tools, sorted by popularity or recent activity.