Claudes C Compiler — Development skill for Claude Code
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.
How to install Claudes C Compiler
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open anthropics/claudes-c-compiler and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claudes C Compiler does
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.
Alternatives in Development
- Fable OS — An agentic operating system where the kernel is controlled directly by Claude 324 ★
- Claude Fable 5 Prompt Strategies — Use when composing prompts targeting Claude Opus 5 (Claude 디폴트), Fable 5, Opus 4.8, or Sonnet 5 — 최신 Claude 프롬 176 ★
- Docmancer — Find out what your coding agents already know 121 ★
README
CCC — Claude's C Compiler
A C compiler written entirely from scratch in Rust, targeting x86-64, i686, AArch64, and RISC-V 64. Zero compiler-specific dependencies — the frontend, SSA-based IR, optimizer, code generator, peephole optimizers, assembler, linker, and DWARF debug info generation are all implemented from scratch. Claude's C Compiler produces ELF executables without any external toolchain.
Note: With the exception of this one paragraph that was written by a human, 100% of the code and documentation in this repository was written by Claude Opus 4.6. A human guided some of this process by writing test cases that Claude was told to pass, but never interactively pair-programmed with Claude to debug or to provide feedback on code quality. As a result, I do not recommend you use this code! None of it has been validated for correctness. Claude wrote this exclusively on a Linux host; it probably will not work on MacOS/Windows — neither I nor Claude have tried. The docs may be wrong and make claims that are false. See [our blog post](https://anthropic.com/engineering/building-c-compiler) for more detail.
Prerequisites
- Rust (stable, 2021 edition) — install via rustup
- Linux host — the compiler targets Linux ELF executables and relies on Linux system headers / C runtime libraries (glibc or musl) being installed on the host
- For cross-compilation targets (ARM, RISC-V, i686), the corresponding
cross-compilation sysroots should be installed (e.g.,
aarch64-linux-gnu-gcc,riscv64-linux-gnu-gcc)
Building
cargo build --release
This produces five binaries in `target/release/`, all compiled from the same source. The target architecture is selected by the binary name at runtime:
| Binary | Target |
|---|---|
ccc |
x86-64 (default) |
ccc-x86 |
x86-64 |
ccc-arm |
AArch64 |
ccc-riscv |
RISC-V 64 |
ccc-i686 |
i686 (32-bit x86) |
Quick Start
Compile and run a simple C progr
Related Skills
Claude Code Single Binary
Build scripts for compiling Claude Code into a single-file executable for Mac, Linux, and Windows with fully b
Linux Kernel Crash Debug
Linux kernel crash debugging skill for Claude Code using crash utility
Cel Kdev
Claude Code skills for Linux kernel development: StGit, perf, and trace-cmd
Kernel Learn
linux-kernel-dev 学习循环 — 把一个刚解决的内核/BSP 坑沉成「规则 + 配套用例 + 注册」的原子三件套,带可执行检查、有回归证明。无可执行检查不准建。
Root Avd
Set up a rooted, anti-detection Android AVD (KernelSU on Apple Silicon, Magisk on x86_64)
Pursue
Hand Kimi an objective to pursue AUTONOMOUSLY across multiple turns (experimental goal mode), bounded by a har
Related Agents
Miri For UB Detection
cargo +nightly miri run RUSTFLAGS="-Z sanitizer=address" cargo build --target x86_64-unknown-linux-gnu RUSTFLA
Coder Assembly
Implements features for assembly languages (x86, ARM, RISC-V, WebAssembly) to make tests pass. Expert in low-l
Codebase Architecture Reviewer
Use this agent when you need a comprehensive architectural review of a codebase, particularly for React/TypeSc