|
|
Log in / Subscribe / Register

Rust and GCC, two different ways

Rust and GCC, two different ways

Posted Oct 9, 2021 18:55 UTC (Sat) by robert_s (subscriber, #42402)
Parent article: Rust and GCC, two different ways

If either of these projects bring us a rust implementation that doesn't have the bonkers bootstrapping-chain story that the official compiler has it'll be a wonderful thing.


to post comments

Rust and GCC, two different ways

Posted Oct 9, 2021 22:22 UTC (Sat) by atnot (guest, #124910) [Link] (1 responses)

That's already pretty well solved by mrustc, a rust compiler written in c++ that's capable of bootstrapping rustc (and not much more)

https://github.com/thepowersgang/mrustc

Rust and GCC, two different ways

Posted Oct 14, 2021 17:47 UTC (Thu) by bluss (guest, #47454) [Link]

It's not exactly solved, since it requires constant work to keep up with rustc changes. Maybe "solved" as in theoretically solved, the bootstrap chain can and has been reproduced.

Rust and GCC, two different ways

Posted Oct 10, 2021 8:03 UTC (Sun) by ms_43 (subscriber, #99293) [Link] (2 responses)

Given that all FLOSS C++ compilers are implemented in C++ these days, there is less improvement in the bonkitude of the bootstrapping process to be had than one might naively assume.

Rust and GCC, two different ways

Posted Oct 11, 2021 16:33 UTC (Mon) by ssokolow (guest, #94568) [Link]

Generally, people are concerned about Trusting Trust attacks by that point, and resort to Diverse Double Compilation to provide a trustworthy starting point.

Rust and GCC, two different ways

Posted Oct 20, 2021 3:41 UTC (Wed) by pabs (subscriber, #43278) [Link]

The Bootstrappable Builds folks are working on a full bootstrap from a small number of bytes of bare metal machine code all the way up to a full Linux distro. They've already achieved quite a bit of that path.

https://bootstrappable.org/
https://github.com/fosslinux/live-bootstrap/blob/master/p...
https://github.com/oriansj/talk-notes/blob/master/live-bo...


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds