5 ms·
I don't think any realistic system will bootstrap C from shell. What is the shell implemented in if not C?
by lpribis 6mo ago
I don't think any realistic system will bootstrap C from shell. What is the shell implemented in if not C?
- gaigalas 6mo agoThis shell.c can be compiled from c89cc.sh itself: https://gist.github.com/alganet/1513d7b6abef5c1a53a324d897c358e0 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 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.
- zhongwei2049 6mo agoThe 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.
- cestith 6mo agoEven if your shell was compiled in C, it doesn’t mean it wasn’t cross-compiled from another platform.