Research study · draft · about
RCE Compile: A Law of Compilation, Tested as a Normal Form Against Real Compilers
When Heavy Compiler Optimization Actually Pays Back Its Energy
Spending fifty joules optimizing a program that only runs ten times wastes electricity—and smart name-free caching avoids recompiling code when someone merely renames a variable.
RCE Compile is a research project in the repository of the Reality Code Engine (RCE). It asks whether one statement of what compilation is, a Law of Compilation, holds for any compiler, independent of RCE. Checked against twelve families of production compilers, the candidate fails as a description: no compiler hashes a name-free representation, lowering in shipping compilers is neither total nor proved to preserve meaning, and no compiler accounts for energy. It holds as a normative framework: a normal form with two bounds and a measured distance from them, against which every compiler can be placed.
What the study claims and what it does not
- It claims that the candidate, as first stated, is falsified as a description of real compilers, and gives the evidence part by part.
- It states a refined standard with seven parts, four equivalence levels and a gate that names what it preserves and the evidence it accepts on, and seven hypotheses with falsifiers.
- It reports the three empirical tracks run so far. Byte comparisons of compiler outputs on three machines leave the hypothesis that lowering is deterministic neither supported nor falsified. Alongside the original 96-row WebAssembly erasure counts, pre-registered Linux RAPL on-chip
reported_jmeasurements across 20 deterministic kernels and 15 compiler tiers (300 of 300 checksum-verified) show that lowering from Python toclang -O3pays back after a median of 2,490 runs,-O0to-O3needs 53,464 to 102,720 runs,-O2to-O3never recovers its extra compile joules on 4 to 6 of the 20 kernels, pre-compiling RCE's standalone Rust runtime prelude once into a sharedlibrce_rt.rlibcrate cuts per-kernel emitted Rust-O3compilereported_jby 20.07× (56.29 J to 2.81 J core, cross-checked at 15.44× on an idle dedicated Core i9-13900H host) and lowers its payback against Node JS from 31,080 to 1,079 runs, and Regime-B time multiplied by power explains far more variance than static IR size (0.9999 against 0.1154). De Bruijn name-free hashing scaled across 185 RCE Forms, 60 C/Rust/Python kernels, and 500 verified semantic mutants yields 0 of 500 (0.00%) false hits and 167.8× to 448.5× warm rebuild savings, whereas naive identifier-stripping collides on 150 of 150 variable-binding swaps. - It does not claim board-level supply wattmeter readings (
board_metered = false,measured_j = None), Regime-A or Regime-C hardware measurements, a measured 98/2 split, or priority over earlier work: two primary sources (Hoare, He and Sampaio, 1993; Ershov, 1977) have not yet been read in full, and almost every external source was seen only as a search result.
librce_rt.rlib), and E5-Scale payback horizons (Linux RAPL core reported_j; board_metered = false) and De Bruijn reuse soundness across 245 programs and 500 semantic mutants.30 November 2026 update · Sovereign 3-ISA + RV64IM ELF64 Backend & Thor INA3221 Shunts (commit 258cbb11)
At openIE-dev/rce commits 258cbb11 & f87d6af2 (493/493 workspace tests), rce-compile adds zero-LLVM sovereign binary emission across x86-64 (Mach-O, ELF), aarch64 (Mach-O, ELF, PE), standalone static Linux RISC-V RV64IM ELF64 (20/20 byte-exact under qemu-riscv64), and wasm32 (9/9 deeper_tiers checks), four decidable bounded equivalence fragments, 1,280/1,280 (100.0%) CapSandbox Gear-0 standard-library coverage, TI INA3221 DC rail shunt measured_j on Jetson AGX Thor (59.84 uJ net dynamic / 1,102.81 uJ gross per 4-artifact compile, 3.04% idle drift), and 35/35 multi-function call-graph De Bruijn canonicalization (FormJEPA).