Automatic Architectural Program Rewrites in X

X infers architectural rewrites that make programs run faster. In a Game Boy emulator, it generated a new execution schedule and a new pixel decoder that together delivered 2.39× the throughput of the original X program on Super Mario Land. The source describes one CPU step at a time. When the emulated CPU halts, X works out how far the display and timers can advance together before the next event and generates a single update for that interval. This schedule alone doubled throughput. In the renderer, X packs eight colour indices into one word and draws each pixel in its original order. With both rewrites, the emulator rendered 15,000 frames in a median of 0.438 s, giving 2.36× the throughput of the matched C emulator. X derives these changes from LLVM intermediate representation (IR). The same passes also rewrote two C programs compiled by Clang. Repository: https://github.com/x-lang-project/x-lang

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-26
DOI
https://doi.org/10.5281/zenodo.24569264
Primary Topic
Parallel Computing and Optimization Techniques
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Automatic Architectural Program Rewrites in X

William Kirkman-Moller
Zenodo (CERN European Organization for Nuclear Research)
Parallel Computing and Optimization Techniques
preprint

Automatic Architectural Program Rewrites in X

William Kirkman-Moller
preprint en

Abstract

X infers architectural rewrites that make programs run faster. In a Game Boy emulator, it generated a new execution schedule and a new pixel decoder that together delivered 2.39× the throughput of the original X program on Super Mario Land. The source describes one CPU step at a time. When the emulated CPU halts, X works out how far the display and timers can advance together before the next event and generates a single update for that interval. This schedule alone doubled throughput. In the renderer, X packs eight colour indices into one word and draws each pixel in its original order. With both rewrites, the emulator rendered 15,000 frames in a median of 0.438 s, giving 2.36× the throughput of the matched C emulator. X derives these changes from LLVM intermediate representation (IR). The same passes also rewrote two C programs compiled by Clang. Repository: https://github.com/x-lang-project/x-lang

Zenodo (CERN European Organization for Nuclear Research)
Parallel Computing and Optimization Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon