Skip to content
Languages / C

C

How Atracode compiles C, what it is verified against, and what it refuses.

Style
Systems
Verified against
zig cc (clang)
Published results
Per release, in the changelog

What is supported

Pointers, pointer arithmetic, arrays, structs, unions, function pointers, variadics, switch fallthrough, macros, exact two’s-complement wrapping. Runs with no libc and no OS.

Lowered through the memory membrane, with every integer width and pointer operation exact.

How it is verified

Every C program is compiled twice, once by Atracode and once by zig cc (clang). Both builds run over the same large set of inputs and must agree bit for bit in output and memory before the compile succeeds. See verification for how the sweep works.

$ atracode compile main.src
verified  raven:3f1c…  (illustrative)

What gets refused

Anything that depends on the world outside the program, such as the clock, the network, environment variables or unseeded randomness, is refused at its exact line and column instead of being approximated. Pass those values in as inputs and compile again. Refusals lists the common causes and fixes.

  • C++Verified against zig c++ (C++20)
  • RustVerified against rustc
  • GoVerified against Go 1.24.5 (go run)
  • ZigVerified against Zig 0.17.0
  • DVerified against DMD / LDC
  • VVerified against V compiler
esc

Type to search titles, headings and text.