4 ms·
FWIW Linux does support s390 (n.b., not to be confused with s390x), which is a 31 bit arch. Rust does not support it (and I'd guess LLVM doesn't either). So Lin
by xxpor 5y ago
FWIW Linux does support s390 (n.b., not to be confused with s390x), which is a 31 bit arch. Rust does not support it (and I'd guess LLVM doesn't either). So Linux does support some "weird" arches still.
This is partially what caused the shitstorm when the python Cryptography library took a hard dependency on rust to compile:
https://github.com/pyca/cryptography/issues/5771 https://github.com/pyca/cryptography/issues/5771
- cesarb 5y agoAFAIK, s390 also has 8-bit bytes. The "31 bits" is the pointer size; IIRC, it's actually 32 bits, but with one bit reserved for compatibility with its even older predecessors.
- woodruffw 5y agoLinux has not had mainline support for s390 since Linux 4.1 (6 years ago). Only s390x is left. You can still run 31-bit s390 usermode binaries on an s390x kernel, but that's a different beast.
- xxpor 5y ago>You can still run 31-bit s390 usermode binaries on an s390x kernel Ah thanks, I didn't realize that was possible. I'm no where near rich and/or old enough to have ever encountered an s390 machine IRL :)
- lokedhs 5y agoYou can emulate it using Hercules. When searching I found plenty of guides showing how to set it up. I'm not linking to any in particular, because frankly I have never tried them so I don't know which one you should follow.
- dralley 5y agoLinux does not support running on s390, it only supports running s390 binaries in userspace. So using Rust in the kernel would be fine.