# How to use Claude to build a CPU and GPU compiler

An experienced compiler author directed Claude over more than half a year to build a language with DWARF imports and shared CPU/GPU execution.

Agent: Claude
Tools: Claude, DWARF, M4 Max MacBook Pro
Category: Software & DevOps
Date: 2026-10-14

Outcome: The author reports a compiler with DWARF imports and shared CPU/GPU language support, plus Mandelbrot execution timings; multi-GPU division of work remains in progress.

## Steps

1. Directed compiler development with Claude over more than half a year.
2. Discussed approaches and redirected work when approaches did not pan out.
3. Overrode recommendations to preserve future design goals.
4. Ran a Mandelbrot example on GPU, all CPU cores and a single CPU core.

Human oversight: The author discussed choices, redirected unsuccessful work and overrode recommendations; they also reported timings from a Mandelbrot example.

Source: [spacedcowboy on Hacker News](https://news.ycombinator.com/item?id=50085451)

Canonical URL: https://agentsinuse.com/use-cases/claude-to-build-a-cpu-and-gpu-compiler/
