| ▲ | blintz 6 hours ago | |||||||||||||
Doesn’t rustc emit LLVM IR? Are there a lot of systems that LLVM doesn’t support? | ||||||||||||||
| ▲ | loeg 4 hours ago | parent | next [-] | |||||||||||||
There are a number of oddball platforms LLVM doesn't support, yeah. | ||||||||||||||
| ▲ | aw1621107 5 hours ago | parent | prev | next [-] | |||||||||||||
rustc can use a few different backends. By my understanding, the LLVM backend is fully supported, the Cranelift backend is either fully supported or nearly so, and there's a GCC backend in the works. In addition, there's a separate project to create an independent Rust frontend as part of GCC. Even then, there are still some systems that will support C but won't support Rust any time soon. Systems with old compilers/compiler forks, systems with unusual data types which violate Rust's assumptions (like 8 bit bytes IIRC) | ||||||||||||||
| ▲ | einpoklum 3 hours ago | parent | prev [-] | |||||||||||||
Many organizations and environments will not switch themselves to LLVM to hamfist compiled Rust code. Nor is the fact of LLVM supporting something in principle means that it's installed on the relevant OS distribution. | ||||||||||||||
| ||||||||||||||