4 ms·
>full source bootstrapped from 180 bytes of human-auditable machine code What does this mean? You have a C-like compiler in 180 bytes of assembler that can co
by floxy 2y ago
>full source bootstrapped from 180 bytes of human-auditable machine code
What does this mean? You have a C-like compiler in 180 bytes of assembler that can compile a C compiler that can then compile GCC?
- mananaysiempre 2y agoThat’s normally what this means, yes, with a few more intermediate steps. There’s only one bootstrap chain like this that I know of[1,2,3], maintained by Jeremiah Orians and the Guix project; judging from the reference to 180 bytes, that’s what the distro GP describes is using as well. > This is a set of manually created hex programs in a Cthulhu Path to madness fashion. Which only have the goal of creating a bootstrapping path to a C compiler capable of compiling GCC, with only the explicit requirement of a single 1 KByte binary or less. [1] https://guix.gnu.org/en/blog/2023/the-full-source-bootstrap-building-from-source-all-the-way-down/ https://guix.gnu.org/en/blog/2023/the-full-source-bootstrap-... [2] https://savannah.nongnu.org/projects/stage0/ https://savannah.nongnu.org/projects/stage0/ [3] https://github.com/oriansj/bootstrap-seeds https://github.com/oriansj/bootstrap-seeds
- floxy 2y agoThat's pretty awesome
- lrvick 2y agoYep, Guix and stagex are the only two distros that full source bootstrap to my knowleldge. We use an abbreviated and explicit stage0 chain here for easy auditing: https://codeberg.org/stagex/stagex/src/branch/main/packages/bootstrap/stage0/Containerfile https://codeberg.org/stagex/stagex/src/branch/main/packages/...
- pabs3 2y agoIIRC the FreeDesktop flatpak runtimes are also built from the Bootstrappable Builds folks full source bootstrap.
- skulk 2y agoAs per their landing page, yes. > stage0: < 190 byte x86 assembly seed is reproduced on multiple distros > stage1: seed builds up to a tiny c compiler, and ultimately x86 gcc > stage2: x86 gcc bootstraps target architecture cross toolchains very impressive, I want to try this out now.
- pabs3 2y agoThe LWN article is a good place to start: https://lwn.net/Articles/985739/ https://lwn.net/Articles/985739/