News for hackers. Stuff that matters.
Re:Bootstrapping from Hex to Bison to GCC by userbinator on Monday May 03, 2021 @08:01PM (#27032482)
See also Bellard's TCCBOOT, which is based on the far simpler TCC instead of GCC: https://bellard.org/tcc/tccboot.html
Re:Bootstrapping from Hex to Bison to GCC by donio on Tuesday May 04, 2021 @02:59AM (#27034738)
That's a different kind of bootstrapping though. The OP is about building up to a toolchain from almost nothing using only source code and only relying on some tiny binaries that could be hand-assembled or verified. And it also uses a version of TinyCC along the way before it arrives to gcc.
Re:Bootstrapping from Hex to Bison to GCC by fosslinux on Tuesday May 04, 2021 @07:08AM (#27036241)
I do plan to integrate this, or something very similar, into live-bootstrap. This is essentially the type of thing we would do to compile the Linux kernel within the bootstrap, which has not been done yet. However tccboot/derivative needs to be compiled from source within live-bootstrap which is not simple.
Re:Bootstrapping from Hex to Bison to GCC by markjenkinswpg on Monday May 03, 2021 @09:24PM (#27033067)
One nice thing about the work showcased here is that it bootstraps TCC on its journey to GCC. At some point we could see attempts to bootstrap tccboot as a kind of "escape pod" from other systems, and after booting tccboot, have the bootstrapping work documented here continue from TCC onward.