5 ms·
I haven't been able to find a coherent comparison of what targets are supported by gcc vs llvm. Wasm ptx, and spirv seem to be llvm only? But the gcc list is k
by galangalalgol 4y ago
I haven't been able to find a coherent comparison of what targets are supported by gcc vs llvm. Wasm ptx, and spirv seem to be llvm only? But the gcc list is kind of confusing. 8051 is mayne gcc only? Or is that even supported by gcc? Other than 8051, all the uc stuff I'm familiar with was in llvm. I'm not sure what 68k support means though, there have been so many variants. More simply, what machines will I be able to compile rust for once this hits that I couldn't before? Gameboy? C64?
- jmillikin 4y agoAncient big iron (SPARC, PA-RISC, Alpha), weird embedded with vendor-provided toolchains based on GCC, and recent architectures that don't have mature LLVM support (Longsoon). m68k is already supported by LLVM and Rust supports it as a tier-3 target platform.
- galangalalgol 4y agoYeah I saw 68k in there, rust also will target sparc and sparc64. And s930, but yeah, I can see how alpha and pa-risc support would be really important for linux to continue supporting. Xtensa got upstream support, but so many embedd vendors seem to want to double dip and sell build tools, so they don't upstream their llvm based build tools. Shortsighted imo. Vendors that don't charge for build tools will make it up in sales volume.
- cozzyd 4y agoVendors not upstreaming their llvm-based build tools is exactly why you should support a GPL compiler like gcc.
- moltonel3x 4y agoGPL doesn't force upstreaming, just making the sources available. Plenty of small vendors are not upstreaming their gcc patches. It's more a question of man-hours than of license.
- moltonel3x 4y agoLoongarch is at tier3 as well: https://doc.rust-lang.org/nightly/rustc/platform-support/loongarch-linux.html https://doc.rust-lang.org/nightly/rustc/platform-support/loo...
- brad00 4y agoLoongson / LoongArch nowadays does have mature LLVM support.