4 ms·
Does Rust support every architecture that the kernel supports? Seriously asking, not rhetorical. I get that new Rust code will be limited to modules, but here'
by Unklejoe 6y ago
Does Rust support every architecture that the kernel supports? Seriously asking, not rhetorical.
I get that new Rust code will be limited to modules, but here's my concern:
I do work for embedded systems based on the PPC architecture. I'm not sure if Rust supports PPC, but let's just assume we're talking about an architecture that's not supported.
Suppose some company creates a PCIe Ethernet adapter and writes their driver in Rust. If Rust doesn't support PPC, then I won't be able to use that hardware even though there's no physical or technical reason why it wouldn't work. If it was written in C like everything else, then there's a good chance it would just work (assuming they didn't make any endianness assumptions).
In fact, I'd bet that the majority of the drivers written for the kernel are really written for X86 and ARM, but just so happen to work for PPC as well for free. I'd be concerned about getting left in the dust, so to speak.
- timw4mail 6y agoRust works on 64bit little-endian PPC at least, with full standard library support.
- steveklabnik 6y agoThe current list of support: https://doc.rust-lang.org/stable/rustc/platform-support.html https://doc.rust-lang.org/stable/rustc/platform-support.html