While LoongArch 64-bit is already part of the GCC compiler for the past several years, LoongArch 32-bit is now being proposed for the GNU Compiler Collection.
Sent out today were patches proposing LoongArch 32-bit for the GCC compiler with the LoongArch32 ILP32D ABI and LoongArch32 Reduced LA32R ILP32S ABI. The ILP32 ABI ends up being similar to the 64-bit LoongArch LP64 ABI but with some minor differences.
Since earlier this year there have been proposed patches for LoongArch32 for the Linux kernel. There are also out-of-tree patches for the GNU C Library, GNU Binutils, and a pached LA32 QEMU system too. While many would love to be focused on just a 64-bit world in 2025+, it looks like Loongson is having new/recent interest now in LoongArch32 after their LoongArch64 architecture has already taken off domestically.
“These series patches introduce LoongArch32(LA32) ilp32d abi and LoongArch32 Reduced(LA32R) ilp32s abi. The ilp32 abi is similar to lp64 abi, with some differences in details.
Most gcc testcasese has passed when using qemu-user.”
There are 34 patches now out for review and consideration for this LoongArch32 target for the GCC compiler.
