注意事项

  • 该版本为龙芯优化版本 MIPS GCC 工具链
  • 适用于 Loongson-2H/2K, Loongson-3A/3B 系列 MIPS 处理器

GCC 7.3 MIPS GNU/Linux 交叉工具链 (rc14.5)

  • 基础源码版本:gcc-7.3.1 binutils-2.28 glibc-2.25 uclibc-0.9.30

  • 多库支持情况:

体系结构 ABI 浮点类型 glibc uclibc
mips32r2 o32 hard float
soft-float
yes
yes
yes
yes
mips64r2 n32
n64
hard float
hard-float
yes
yes
-
-
mips32 o32 hard float
soft-float
yes
yes
yes
yes
mips16 o32 hard float
soft-float
yes
yes
-
-
  • 默认编译配置为 -march=mips32r2 -mabi=32 -mglibc,使用其他种类多库则需要显式给出编译选项。 例如,若需要编译 mips64r2 n64 ABI 的目标文件,并链接到 uclibc 库, 则需要添加参数 -march=mips64r2 -mabi=64 -muclibc

  • 新增指令集支持:

指令集 编译参数
Loongson MMI -mloongson-mmi
Loongson EXT -mloongson-ext
Loongson EXT2 -mloongson-ext2
MSA -mmsa
  • 新增架构支持:
芯片 架构 编译参数
3A1000
3B1500
GS464 -march=gs464
3A2000
3A3000
3B2000
3B3000
GS464E -march=gs464e
2K1000 GS264E -march=gs264e