---
agent:
  instructions: "Use this search API to find apps, tools and games built with AI across this catalog with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://justbuildapps.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://justbuildapps.com/for-agents"
---

# xcc \| xc

> I'm writing a language called xc and its compiler, xcc for the last 6 months or so (full disclosure: with a lot of help from Claude).

Page: https://justbuildapps.com/app/9179 · Markdown: https://justbuildapps.com/app/9179.md

I'm writing a language called xc and its compiler, xcc for the last 6 months or so (full disclosure: with a lot of help from Claude). I've finally got version 1 (actually v1.0.1) out, for Linux (x86-64 and arm64, including the Pi 5), macOS and Windows. The idea: you write an ordinary loop, the compiler works out whether it can run in parallel, and it emits both a multi-core CPU version and GPU kernels (MSL, PTX, SPIR-V or WGSL, all generated by xcc itself without needing an SDK installed). At run time the program measures each block on that machine and keeps the faster placement. Examples: - On an M3 Max a Mandelbrot block takes 13.7 ms on all 16 cores and 1.3 ms on the GPU - On a Ryzen 9955HX's 2-CU integrated Radeon the GPU loses to the 32 CPU threads, so it stays on the CPU. The compiler also reads plain old C via clang's front end and does the same thing to C loops, with no pragmas. Comparing xcc to OpenMP for both gcc and clang (with the helping hand of "#pragma omp parallel for" gives (times in ms): xcc gcc+omp clang+omp mandel\_deep 371 2170 2231 mandelbrot 2.45 12.2 12.8 md5 9.39 16.1 13.4 md5\_mask 8.17 12.1 13.4 nbody 0.45 1.29 9.92 perlin 5.87 4.38 7.05 saxpy 2.26 2.18 2.32 Geometric mean: xcc is 2.1x faster than GCC+OpenMP and 3.0x faster than clang+OpenMP. All the builds are checked to make sure they give the same result - no point having a benchmark that doesn't produce the same result! xcc has a notable win for nbody, because its vectorisation is better (across bodies) but perlin has been a bit of a bugbear throughout the leading-up-to-v1 timespan. Platform-specific binary tarballs, the sources, OpenMP versions and method are on the site (linked from github), and there are Phoronix Test Suite profiles if you'd like to run them yourself. It's only just made v1 so there's a few rough edges: C++ through clang is in-progress (but not official yet), and the Pi 5's GPU is slow. Not sure if that's the Pi or the code yet...

## Facts

- Category: Dev tools
- Pricing: not known (check the app's own site)
- Claimed: not yet. The builder hasn't claimed this listing (site: compile-xc.org).
- Listed via: https://news.ycombinator.com/item?id=50487155

## Links

- Live app: https://compile-xc.org/compiler/
- Source code: https://github.com/ThrudTheBarbarian/xc
- On JustBuildApps: https://justbuildapps.com/app/9179

## Built this app?

This listing hasn't been claimed by its builder. Claim it to put it on your JustBuildApps profile with all its details: email automatejobhunt@gmail.com or message https://x.com/justbuildapps for your claim link.

## Alternatives

- [Axe](https://justbuildapps.com/app/9369): I'm writing a compiler for a systems language focused on concurrency and parallelism. It’s a re-engineering of a prior work, with an…
- [Kandelo](https://justbuildapps.com/app/9506): Kandelo is an open-source, Wasm-based multi-process kernel that runs POSIX programs in browsers and Node.js. Kandelo is still…
- [erXos](https://justbuildapps.com/app/8201): What if every Erlang process were an operating-system process? With as much system code and drivers written in Erlang itself. This is…
- [DOOM in the kernel, or fibers in eBPF · ayles](https://justbuildapps.com/app/8930): Some time ago my coworker who was working on first version of Perforator (https://github.com/yandex/perforator) kept talking about eBPF…
- [rhun: a small, fast code editor written in assembly](https://justbuildapps.com/app/8914): I found that I'm not using even 1/3 of vim/vscode features anymore. That's wht I'm building rhun - a small code editor for Linux, Windows…
