Compiling Rust with GCC: an update
Compiling Rust with GCC: an update
Posted Sep 13, 2022 2:37 UTC (Tue) by mjg59 (subscriber, #23239)In reply to: Compiling Rust with GCC: an update by paulj
Parent article: Compiling Rust with GCC: an update
No, you can generate a trusted compiler via a directly introspectable process. Pick an architecture. Write a trivial assembler directly in machine code. Use that to bootstrap a more competent assembler. Write a trivial C compiler. Use that to build an extremely old version of gcc. Use that to build a modern version of gcc. Use that to build a cross-compiler for whatever architecture you actually care about. You now have a trusted compiler, and the rest of Diverse Double Compilation falls out of that.
