Having a Rust compiler is probably unavoidable
Having a Rust compiler is probably unavoidable
Posted Nov 23, 2024 18:35 UTC (Sat) by raven667 (subscriber, #5198)In reply to: Having a Rust compiler is probably unavoidable by Karellen
Parent article: NonStop discussion around adding Rust to Git
I read that as saying it's simpler to port GCC or LLVM to a new platform because you probably want more than a C compiler (that you could in theory write yourself) you want C++ and other languages which GCC and LLVM support, that would be prohibitively expensive to write a new independent implementation for on your new platform. If the path of least resistance is already porting GCC or LLVM and Rust can be compiled using LLVM and soon GCC then your platform can also get Rust support because much of the underlying work will have already been done, it's not as if anyone needs to write a new Rust compiler for your new platform.
