GCC Compiler Accepts China's MIPS-Derived LoongArch CPU Port

Written by Michael Larabel in GNU on 26 March 2022 at 05:11 AM EDT. 11 Comments
GNU
The GCC steering committee has signed off on the LoongArch compiler port and could still land for the GCC 12 stable compiler release in a few weeks.

LoongArch is the CPU architecture developed by Chinese hardware vendor Loongson and based on MIPS 64-bit with various modifications. Loongson has been working on the GCC compiler port for a while along with the Linux kernel changes and other software stack support.

Loongson's kernel work on LoongArch was criticized for duplicating lots of MIPS code but has still been working through that and then the main blocker on getting the Linux kernel code introduced shifted to the lack of mainline GCC compiler support.


The LoongArch ISA docs can be found on GitHub.


The GCC steering committee announced on Friday they have accepted the LoongArch port for inclusion. They hope that this will still land in time for the GCC 12.1 stable release that will be out in April or May.

Loongson 3A5000 benchmarks aren't the most promising right now for the initial LoongArch ISA hardware but will be interesting to see how Loongson can evolve the hardware and software support moving forward for this Chinese domestic architecture.

Loongson has also been working on LoongArch for LLVM.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week