The GNU Compiler Collection
open sourceGPL-3.0-or-later AND GPL-3.0-or-later WITH GCC-exception-3.1free
GCC, the GNU Compiler Collection, is the GNU Project's compiler, with front ends for C, C++, Objective-C, Objective-C++, Fortran, Ada, Go, D, Modula-2, COBOL, Rust and Algol 68, and runtime libraries for these languages such as libstdc++. It was first written as the compiler for the GNU operating system and aims to work well on many native and cross targets, including GNU/Linux. It ships as source releases (its site links pre-compiled binaries for various platforms), with several release series supported at once; a steering committee guides major decisions. GCC is under the GPL version 3 or later, and its runtime libraries carry the GCC Runtime Library Exception so compiled programs can use any licence.
Problems it solves
- compile my C or C++ program on Linux
- cross-compile C code for an embedded ARM or RISC-V board
- a free compiler for Fortran scientific code
- build Ada programs with a free toolchain
- an alternative to Clang that supports the newest C++ standard
- compile Go or Rust code with a GNU toolchain instead of the official compiler
Features
- front ends for C, C++, Objective-C, Objective-C++, Fortran, Ada, Go, D, Modula-2, COBOL, Rust and Algol 68
- runtime libraries including libstdc++
- native and cross targets
- GCC Runtime Library Exception for compiled programs
- several supported release series at once
- weekly snapshots and public Git
Alternatives
The same job
These do what GCC does.
- Free Pascal Open source compiler for Pascal and Object Pascal
- LLVM A collection of modular and reusable compiler and toolchain technologies
- SBCL A high performance Common Lisp compiler