Metadata
Title
GNU Compiler Collection¶
Category
general
UUID
c4118f0697bd4663b1a9528f791a7f39
Source URL
https://docs.hpc.sjtu.edu.cn/app/compilers_and_languages/gnu.html
Parent URL
https://docs.hpc.sjtu.edu.cn
Crawl Time
2026-03-13T07:56:26+00:00
Rendered Raw Markdown
# GNU Compiler Collection¶

**Source**: https://docs.hpc.sjtu.edu.cn/app/compilers_and_languages/gnu.html
**Parent**: https://docs.hpc.sjtu.edu.cn

# GNU Compiler Collection[¶](#gnu-compiler-collection "Link to this heading")

GNU(GNU Compiler Collection),缩写为"GCC",即"GNU编译器套件",可将其理解成是多个编译器的集合。
支持的语言包括C、C++、Fortran、Ada、Object-C和Java等。

## 查看GCC的版本[¶](#gcc "Link to this heading")

```
[hpc@node499 ~]$ gcc --version
gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-22)

[hpc@node499 ~]$ g++ --version
g++ (GCC) 8.5.0 20210514 (Red Hat 8.5.0-22)

[hpc@node499 ~]$ gfortran --version
GNU Fortran (GCC) 8.5.0 20210514 (Red Hat 8.5.0-22)
```

## 集群平台上的GCC[¶](#id1 "Link to this heading")

- [思源一号上的GCC](#id2)
- [π2.0上的GCC](#id4)
- [ARM上的GCC](#armgcc)

## 思源一号上的GCC[¶](#id2 "Link to this heading")

| 版本 | 加载方式 |
| --- | --- |
| gcc-8.5.0 | module load gcc/8.5.0 |
| gcc-9.3.0 | module load gcc/9.3.0 |
| gcc-9.4.0 | module load gcc/9.4.0 |
| gcc-10.3.0 | module load gcc/10.3.0 |
| gcc-11.2.0 | module load gcc/11.2.0 |
| gcc-12.3.0 | module load gcc/12.3.0 |

思源一号上的GCC默认版本为: 8.5.0。

## π2.0上的GCC[¶](#id4 "Link to this heading")

| 版本 | 加载方式 |
| --- | --- |
| gcc-9.3.0 | module load gcc/9.3.0 |
| gcc-10.2.0 | module load gcc/10.2.0 |
| gcc-11.2.0 | module load gcc/11.2.0 |
| gcc-12.3.0 | module load gcc/12.3.0 |
| gcc-13.2.0 | module load gcc/13.2.0 |

π2.0上的GCC默认版本为: 8.5.0。

## ARM上的GCC[¶](#armgcc "Link to this heading")

ARM平台上的GCC默认版本为: 10.3.1。

## 参考资料[¶](#id7 "Link to this heading")

- [Top 20
  licenses](https://web.archive.org/web/20160719043600/)
  <https://www.blackducksoftware.com/top-open-source-licenses/>

2026 年 01 月 15 日