But how would you build the first GCC in that chain?
Using another C compiler, if none exists, create one in Assembly or other programming language in the target platform and go from there.
Re:Cyclic dependencies are evil (2013)
by joshuaissac on Saturday January 30, 2021 @08:23PM
(#25974803)
TCC 0.9.27 can build GCC 2.95.3. You can build TCC using GNU Mes, which itself can be built using M2-Planet, which is written in a subset of C.
Re:Cyclic dependencies are evil (2013)
by fosslinux on Saturday January 30, 2021 @11:20PM
(#25975895)
Furthermore, M2-Planet can be built by another C compiler written in assembly, all the way down to hex instructions.
These projects are from the Bootstrappable Builds folks:
https://bootstrappable.org/ https://bootstrapping.miraheze.org/wiki/
If you can bootstrap it, and you can, then it's not really a hard, unbreakable cycle, right? It's just an option that's quicker than starting from tcc or whatever every time.