Subject: Re: Rust building

From: Sergey Matveev <[email-masked]>
Date: Tue, 14 Jun 2022 21:19:47 +0300

*** John Goerzen [2022-06-14 08:59]:
>If cc can be written in C, why not rustc in Rust?

It can, no problems, but it should be bootstrapable, especially taking
into account that it was already initially written on OCaml, high-level
language, that can be in turn bootstrapped with CC. Initial commits in
Rust repository even contains its OCaml version, but why its authors do
not provide instructions how can I build it up from the ground, to
reproduce their job? Even CC can be bootstrapped more or less with GNU
Mes project as it is done in GNU Guix, where they build Scheme
interpreter, TinyCC, early GCC with only relatively tiny binary blob,
being lighter with its latest releases. CC is just so old, initially
written on BCPL, assembly, for some hardware is not used anymore. But at
least it is some common denominator existing in virtually all Unix-like
OSes out-of-box. Clear official rules and guides how Rust can be build
from the ground, how can I reproduce the work done by their authors will
close that problem (of course by the price of CPU time spent compiling a
dozens of its versions). Or at least clear direction to use something
like mrustc, but making it buildable not only on three OSes.

-- 
Sergey Matveev (http://www.stargrave.org/)
OpenPGP: CF60 E89A 5923 1E76 E263  6422 AE1A 8109 E498 57EF