GCC compiler accepts LoongArch CPU

The GCC steering committee approved the LoongArch port of Loongson and assigned two Chinese developers as maintainers, which are expected to be added to the GCC 12 stable release in the coming weeks.

The announcement reads that it has now entered the final technical review and patch approval stage, and follow-up work includes coordinating with the GCC release manager to merge the patch into the development tree and then add it to GCC 12.

LoongArch  is an independent instruction system architecture created by Loongson. LoongArch  includes basic architecture and extended parts such as vector instructions, virtualization, and binary translation, with nearly 2,000 instructions. According to reports, the Loongson architecture does not contain the MIPS instruction system. The Loongson 3 5000 series was the first hardware to support this ISA.

LoongArch ISA Documentation: https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.pdf

It is said that Godson has been doing the porting of the GCC compiler before, as well as the modification of the Linux kernel and the support of other software stacks. One of the modifications to the Linux kernel was criticized for duplicating a lot of MIPS code. After solving this problem, the main obstacle to Linux kernel support became the lack of support for the mainline GCC compiler.

Further reading

Guess you like

Origin www.oschina.net/news/188871/loongarch-for-gcc-12