3 ms·
But how would you build the first GCC in that chain?
by nyberg 6y ago
But how would you build the first GCC in that chain?
- pjmlp 6y agoUsing another C compiler, if none exists, create one in Assembly or other programming language in the target platform and go from there.
- joshuaissac 6y agoTCC 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. https://www.gnu.org/software/mes/ https://www.gnu.org/software/mes/
- fosslinux 6y agoFurthermore, M2-Planet can be built by another C compiler written in assembly, all the way down to hex instructions. https://github.com/oriansj/mescc-tools-seed/ https://github.com/oriansj/mescc-tools-seed/
- pabs3 6y agoThese projects are from the Bootstrappable Builds folks: https://bootstrappable.org/ https://bootstrappable.org/ https://bootstrapping.miraheze.org/wiki/ https://bootstrapping.miraheze.org/wiki/