Wait a god damn second, if you need GCC to compile GCC...How was first GCC compiled?Also is it rust written in rust?Was it first written in C/C++ then re-written in rust?
>Wait a god damn second, if you need GCC to compile GCC...>How was first GCC compiled?https://en.wikipedia.org/wiki/Bootstrapping_(compilers)>Also is it rust written in rust?>Was it first written in C/C++ then re-written in rust?https://en.wikipedia.org/wiki/LLVM
I can't believe this isn't the accepted answer on that page.https://stackoverflow.com/a/65708958https://bootstrappable.org/projects.html
>fucking firefox ruined the screenshot again
There was already a C compiler when GCC started. GCC started in 1987. C started in 1972.
>>100116330Also rust was written in OCaml first.
>>100116495And OCaml is bootstrapped from CLLVM is bootstrapped from g++ which is bootstrapped from gcc
>>100116270it goes like this>primitive baremetal, balls to the wall, 0 and 1 programming to make assembler>use said assembler to make a ""super"" assembler>Write C compiler in super assembler >rewrite said compiler on C compiler and compile again>now it is self-hosting>...>write C++ compiler on said C Compiler and compile it against itself again>memelang adds a custom frontend to the C++ compiler, compiles it, rewrites it into new memelang compiler and compiles it again.>now you have a Tranny++Its turtles all the way down
>>100116270>Also is it rust written in rust?It was originally written in OcaML.
>Also is it rust written in rust?The first Rust compiler was written in OCaml. All subsequent compilers use a Rust front end, but use LLVM as the backend. LLVM is written in C++, and is used as the backend for a wide variety of languages.
>>100116386Neat read
>>100116270It was compiled by hand, they translated each single line of C codo to binary.
>>100116386bootstrapping the bootstrappers, essentially going a few generations of pure assembly to full blown compiler, it'd be nice to do a "linux from scratch" using this approach
>>100116386>GNU MesGNU/Based & LISPilledhttps://www.gnu.org/software/mes/manual/html_node/LISP-as-Maxwell_0027s-Equations-of-Software.html