News for hackers. Stuff that matters.

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

https://github.com/gaidardzhiev/simplex

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. 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. To fully appreciate the tragedy of modern computing, I coded and bootstrapped the entire system on a smartphone running GrapheneOS, inside Termux, wrapped in PRoot, running my custom Void Linux musl rootfs.
( no comments | on HN )

There are no comments yet.