GNU Compiler Collection Adds Support For China's LoongArch CPU Family
Version 12.1 of the GNU Compiler Collection (GCC) was released this month, and among its many changes is support for China's LoongArch processor architecture.
The announcement of the release is here; the LoongArch port was accepted as recently as March.
China's Academy of Sciences developed a family of MIPS-compatible microprocessors in the early 2000s. In 2010 the tech was spun out into a company called Loongson Technology which today markets silicon under the brand "Godson". The company bills itself as working to develop technology that secures China and underpins its ability to innovate, a reflection of Beijing's belief that home-grown CPU architectures are critical to the nation's future.
LoongArch emerged from Loongson around about last year, and was described as a new RISC ISA that comes in 32-bit and 64-bit flavours.
GCC 12.1 seemingly supports the 64-bit side (LA64), according to the release notes:
The ISA's designers have said LoongArch is similar to MIPS and RISC-V; at least one Linux kernel developer has complained it's basically MIPS all over again. MIPS isn't so trendy these days – RISC-V is the new open-source silicon hotness. Even MIPS the company is doing RISC-V chips. Although China made some bold claims about RISC-V, it can't quite seem to let go of MIPS for its Loongson line.
LoongArch is said to be the CPU architecture of Loongson's latest silicon, such as the 3A5000 processor. Previous chips, such as the 3A4000, are definitely 64-bit MIPS affairs. Loongson engineers tried to submit code to the Linux kernel in March this year to support an LS3A4000-powered motherboard made by Chinese computer-maker Lemote.
One Chinese blogger published an informative review of this MIPS64 Lemote system. It was made to run UnionTech UOS, which is the China-only commercial version of Debian-based Deepin.
- Turing Pi 2 crowdfunding goal smashed within a day
- The sad state of Linux desktop diversity: 21 environments, just 2 designs
- Python is getting faster: Major performance tweaks on horizon
- Workstation, server, IoT? No worries. Fedora 36 is out – all 13 editions of it
Another MIPS64 Lemote model, the Fulong mini-PC, comes with a version of Fedora called Dragon Dream F28, and web engine developers Igalia report that it's tricky to run anything else on the box.
This is why getting support into the upstream Linux kernel is important, and there is at least some Loongson support in the mainline kernel codebase (not so much for LoongArch so far). For anything that doesn't make or hasn't made it into the open-source project, Loongson and its customers must maintain their own branch of the kernel, such as Loongnix. If the source code on GitHub is any indication, this effort can lag considerably behind the current kernel.
Loongson is not the only Chinese processor line. The newer RISC-V architecture XiangShan processors look promising. There is, or was, also an x86-compatible joint venture with Taiwanese Via Technologies, the KaiXian range from Zhaoxin. Huawei has developed an Arm-based range of "Kunpeng" processors, and China's top clouds have developed silicon for servers and AO. However, it looks like Loongson is not going away just yet. ®
From Chip War To Cloud War: The Next Frontier In Global Tech Competition
The global chip war, characterized by intense competition among nations and corporations for supremacy in semiconductor ... Read more
The High Stakes Of Tech Regulation: Security Risks And Market Dynamics
The influence of tech giants in the global economy continues to grow, raising crucial questions about how to balance sec... Read more
The Tyranny Of Instagram Interiors: Why It's Time To Break Free From Algorithm-Driven Aesthetics
Instagram has become a dominant force in shaping interior design trends, offering a seemingly endless stream of inspirat... Read more
The Data Crunch In AI: Strategies For Sustainability
Exploring solutions to the imminent exhaustion of internet data for AI training.As the artificial intelligence (AI) indu... Read more
Google Abandons Four-Year Effort To Remove Cookies From Chrome Browser
After four years of dedicated effort, Google has decided to abandon its plan to remove third-party cookies from its Chro... Read more
LinkedIn Embraces AI And Gamification To Drive User Engagement And Revenue
In an effort to tackle slowing revenue growth and enhance user engagement, LinkedIn is turning to artificial intelligenc... Read more