GCC 

Description

The GNU Compiler Collection includes front ends for C, C++, Objective-C, Fortran, Java, and Ada, as well as libraries for these languages (libstdc++, libgcj,...).

More information

- Homepage: https://gcc.gnu.org/ - Related modules also load binutils

Available Versions of GCC

Version

Module

Available on

Version

Module

Available on

9.3.0

compiler/GCC/9.3.0

Noctua 1, Noctua 2

8.3.0

compiler/GCC/8.3.0

Noctua 1, Noctua 2

7.4.0-2.31.1

compiler/GCC/7.4.0-2.31.1

Noctua 2

13.2.0

compiler/GCC/13.2.0

Noctua 1, Noctua 2

12.3.0

compiler/GCC/12.3.0

Noctua 1, Noctua 2

12.2.0

compiler/GCC/12.2.0

Noctua 1, Noctua 2

11.3.0

compiler/GCC/11.3.0

Noctua 1, Noctua 2

11.2.0

compiler/GCC/11.2.0

Noctua 1, Noctua 2

10.3.0

compiler/GCC/10.3.0

Noctua 1, Noctua 2

10.2.0

compiler/GCC/10.2.0

Noctua 1, Noctua 2

This table is generated automatically. If you need other versions please click pc2-support@uni-paderborn.de.

Usage Hints for GCC

If you need support in using this software or example job scipts please contact pc2-support@uni-paderborn.de.

General options for optimization

-On: control for code optimization

-O0: generate unoptimized code (reduce compilation time and useful for debugging)

-O1: optimize compilation without significant increase in compilation time

-O2: optimize even more without significant increase of size of the binary

-O3: enable all -O2 options with even aggressive optimizations

-Ofast: enable all -O3 options as well as optimizations that are not valid for standard-compliant programs

-Os: enable all -O2 options except those increase size of the binary

-Og: optimize debugging experience

-ffast-math: provide the fastest math operations

  • This option is not turned on by any -On option (except -Ofast).

  • The optimizations may violate IEEE or ANSI standards.

  • Use this option, only the correctness of the code is verified.

-fopenmp: enable the OpenMP support

-mtune=cpu-type: generate code that is tuned for cpu-type, but may still run on other CPU types

recommended cpu-typenative: select the CPU type determined at compilation time on the machine

-march=cpu-type: imply -mtune=cpu-type and generate code that may not run at all on other CPU types

recommended cpu-typenative: select the CPU type determined at compilation time on the machine

Special option on Noctua 1

The microarchitecture of Intel Xeon Skylake SP 6148 on Noctua 1 is Skylake SP. The AVX-512 instructions are supported. The following compiler options can be used to generate optimized binary executable.

-march=skylake-avx512 -mprefer-vector-width=512

Special option on Noctua 2

The microarchitecture of AMD Milan 7763 on Noctua 2 is Zen 3. The AVX-2 instructions are supported. The following compiler options can be used to generate optimized binary executable.

-march=znver3 -mprefer-vector-width=256

Useful links