← All projects
Project record1 mention
Originally shared on Hacker News

Simplex

Simplex is a self-hosting AArch64 compiler that emits pure, self-contained ELF64 AArch64 Linux executables. A recursive descent parser feeds a code generator that hand-encodes A64 machine instructions into text, rodata and BSS segments; the language has one type, with raw pointers and byte intrinsics. The compiler compiles its own source with bit-identical successive generations, and was coded and bootstrapped on a smartphone running GrapheneOS inside Termux, PRoot, and a custom Void Linux musl rootfs.

Last shared
01 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Simplex

    Simplex is a self-hosting AArch64 compiler that emits pure, self-contained ELF64 AArch64 Linux executables. A recursive descent parser feeds a code generator that hand-encodes A64 machine instructions into text, rodata and BSS segments; the language has one type, with raw pointers and byte intrinsics. The compiler compiles its own source with bit-identical successive generations, and was coded and bootstrapped on a smartphone running GrapheneOS inside Termux, PRoot, and a custom Void Linux musl rootfs.

    Posted by @mrelf · Original source ↗

    Story title · @mrelf · · Source ↗

    Show HN: Simplex – Self-hosting AArch64 ELF compiler built on a GrapheneOS phone

    Submitted URL · @mrelf · · Source ↗

    https://github.com/gaidardzhiev/simplex

    Source text · @mrelf · · Source ↗

    Simplex is a compiler that strikes directly at the architectural heresy of modern computing, spitting out pure, self-contained ELF64 AArch64 Linux executables directly on the metal.

    Source text · @mrelf · · Source ↗

    A recursive descent parser feeds a code generator that encodes A64 machine instructions by hand into three segments, text, rodata and BSS. The language has one type, with raw pointers and byte intrinsics. And it is self-hosting: the compiler compiles its own source, and the next two generations come out bit-identical.

    Source text · @mrelf · · Source ↗

    I coded and bootstrapped the entire system on a smartphone running GrapheneOS, inside Termux, wrapped in PRoot, running my custom Void Linux musl rootfs.