At a conference, the technical director of China Bidding Association actually said in front of many leaders that .NET can not run on domestic servers, it can be said that this technical director is either stupid or bad. The processor architectures of domestic servers mainly include x86, ARM, LoongArch, and risc-v. These domestic server processor architectures have their own characteristics, with ARM architecture having an advantage in terms of self-control and ecological construction, and x86 architecture excelling in terms of the existing ecosystem and compatibility. LoongArch and risc-v represent the highest level of complete autonomy and control, but the ecological construction still needs time to be perfected.
Since .NET went open source in 2014, the community has also extended .NET to run on other platforms.Samsung ports .NET for its ARM-based Tizen platform。Red Hat cap (a poem)IBM Porting .NET to LinuxONE/s390x。Loongson Chinacommander-in-chief (military)NET port to LoongArch. Samsung ports .NET for its RISC-V based Tizen platform。
NET's support for X86, ARM, LoongArch, RISC-V, and LinuxONE is comprehensive, with support for ARM and RISC-V architectures in particular being gradually improved. The details are as follows:
-
X86 architecture:
- NET supports the X86 architecture, including AMD64 and Intel 64 (x86_64).
- The operating system supports Windows, Linux, and Mac.
ARM Architecture:
- NET supports the ARM architecture, including ARM32 and ARM64.
- Operating system support Windows, Linux.
- NET 6+ on homegrown servers dominated by the ARM architecture, all of which can run .
LoongArch Architecture:
- NET team has optimized the LoongArch64 architecture, including the adaptive optimization of the backend instruction building system, bytecode loading, JIT syntax tree, ABI specification, function stack frame design, GC, exception handling and other modules, and the .NET 8 SDK has been optimized on the LoongArch64 platform, integrating the core library files in PE32+ format and NET 8 SDK has also been optimized for the LoongArch64 platform, integrating core library files in PE32+ format, and supporting crossgen2 features to further improve performance.
- Operating system support for Linux, including a variety of domestic Linux servers, can run .NET 6 +.
RISC-V architecture:
- NET Runtime provides initial RISC-V build support, the code has been successfully tested for RISC-V cross-builds and can run .NET 9 on RISC-V, and NativeAot support is under development.
- Samsung engineers submitted a PR proposal to Microsoft .NET Runtime to make it support RISC-V processors.
- The operating system supports Linux, and supports running .NET 9.
- NET supports the IBM Z and LinuxONE (s390x) architectures.
- NET 6.0 and above supports IBM Z and LinuxONE (s390x).