4 ms·
Bootstrapping on platforms where llvm isn't supported?
by tyingq 5y ago
Bootstrapping on platforms where llvm isn't supported?
- amelius 5y agoI don't see why you would want to do that as you can always ssh into a system where llvm is supported, then compile to C, copy the C sources back to your system and compile rustc using a C compiler.
- tyingq 5y agoPerhaps the generated C isn't as portable (endianess, byte alignment, etc).
- im_down_w_otp 5y agoHow are you compiling to C? With the LLVM IR to C backend that was (is?) maintained by the Julia folks? My experience from a couple years ago was that it didn't produce output which would compile with baroque C toolchains for platforms that LLVM doesn't support... I'm giving very unsubtle side eye to you TriCore.
- amelius 5y agoWell, in any case, writing a backend for rust or llvm that generates C is probably still less work than writing an entire rust compiler. Maintaining it is even orders of magnitude less work than maintaining a C++ "shadow" version of the rust compiler.