News for hackers. Stuff that matters.
Re:C89cc.sh – standalone C89/ELF64 compiler in pure portable... by gaigalas on Friday April 03, 2026 @08:35AM (#47625966)
This shell.c can be compiled from c89cc.sh itself:

https://gist.github.com/alganet/1513d7b6abef5c1a53a324d897c3...

Ouroboros self-hosting. They can self-host one another.

The idea is to make shell.c compile from an even simpler C compiler, such as M2-Planet:

https://github.com/oriansj/M2-Planet

Let me remind you that current stage0 bootstraps tinyc from mes, which is an interpreted lisp. It's not that different from the shell architecturally.

The current stage0 also features kaem as one of the first dependencies. kaem is, in fact, a simpler version of the bourne shell.

It's always a tower. You'll never get a one single clean dependency pass in bootstrapping.

Re:C89cc.sh – standalone C89/ELF64 compiler in pure portable... by zhongwei2049 on Friday April 03, 2026 @09:18AM (#47626367)
The shell.c ouroboros is really cool. Being able to bootstrap trust through an entirely different language family (shell → C → shell) adds genuine value to the trusting-trust problem beyond just technical novelty.