News for hackers. Stuff that matters.
Re:Rust support in the Linux kernel by johnisgood on Wednesday December 08, 2021 @02:16PM (#29489060)
I completely agree. We should not get ahead of ourselves just yet. It seriously should support most if not all of the architectures that Linux itself supports.

https://doc.rust-lang.org/nightly/rustc/platform-support.htm...

vs.

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin... or https://en.wikipedia.org/wiki/List_of_Linux-supported_comput...

Re:Rust support in the Linux kernel by xxpor on Wednesday December 08, 2021 @03:18PM (#29489906)
LLVM is the real bottleneck here. I've worked with a platform that would have been easy to build a custom rust for (even if it wasn't officially supported), but was held up by the lack of LLVM support.
Re:Rust support in the Linux kernel by lambda on Wednesday December 08, 2021 @03:31PM (#29490091)
Yep. But there are two different active projects for compiling Rust with a GCC backend at the moment (one as a completely new frontend written as part of the GCC codebase, one as a libgccjit backend for the existing Rustc), there's also a Cranelift backend for rustc that you could add new architecture support to, and LLVM does add new targets, it can just take a bit longer to get support into LLVM and they don't keep architectures that are lightly or unmaintained around as long as GCC does.

For instance, Tier 3 support for m68k-unknown-linux-gnu was recently stabilized in rustc as a result of m68k support landing in LLVM (https://github.com/rust-lang/rust/blob/master/RELEASES.md#co...), which has been one of the previous sticking points for Rust packaging on Linux distros, some of which still support m68k architectures.