News for hackers. Stuff that matters.
Re:Greg K-H: "Writing new code in Rust is a win for all of us" by jfbfkdnxbdkdb on Friday February 21, 2025 @05:10AM (#43125894)
Uhhhhh IIRC rust uses llvm under the hood so ... Change the back end and you are good?
Re:Greg K-H: "Writing new code in Rust is a win for all of us" by rcxdude on Friday February 21, 2025 @07:07AM (#43126598)
There are some platforms which linux supports that LLVM does not (and GCC does). There is quite a lot of effort in making a decent LLVM backend, and these older systems tend to have relatively few maintainers, so there may not be the resources to make it happen.
Re:Greg K-H: "Writing new code in Rust is a win for all of us" by ddtaylor on Friday February 21, 2025 @07:47AM (#43126844)
Aren't those already situations we use cross compiler for?
Re:Greg K-H: "Writing new code in Rust is a win for all of us" by Filligree on Friday February 21, 2025 @08:42AM (#43127307)
A cross compiler is just compiler backend for machine X running on machine Y. You still need the backend.
Re:Greg K-H: "Writing new code in Rust is a win for all of us" by Pet_Ant on Friday February 21, 2025 @11:29AM (#43129468)
> There is quite a lot of effort in making a decent LLVM backend, and these older systems tend to have relatively few maintainers

Well, it also takes effort to be held back with outdated tools. Also, the LLVM backend doesn't have to be top-notch, just runnable. If they want to run legacy hardware they should be okay with running a legacy or taking the performance hit of a weaker LLVM back-end.

Realistically

At version 16[1], LLVM supports: * IA-32 * x86-64 * ARM * Qualcomm Hexagon * LoongArch * M68K * MIPS * PowerPC * SPARC * z/Architecture * XCore * others

in the past it had support for Cell and Alpha, but I'm sure that the old code could be revived if needed, so how many users are effected here? Lets not forget the Linux dropped Itanium support and I'm sure someone is still running that somewhere.

Looking through this list [2], what I see missing is Elbrus, PA-RISC, OpenRisc, and SuperH. So pretty niche stuff.

[1] https://en.wikipedia.org/wiki/LLVM#Backends

[2] https://en.wikipedia.org/wiki/List_of_Linux-supported_comput...

Re:Greg K-H: "Writing new code in Rust is a win for all of us" by dannymi on Saturday February 22, 2025 @10:01AM (#43139494)