🌐
GNU
gcc.gnu.org
GCC, the GNU Compiler Collection - GNU Project
The GNU Compiler Collection includes front ends for C, C++, Objective-C, Objective-C++, Fortran, Ada, Go, D, Modula-2, COBOL, Rust, and Algol 68 as well as libraries for these languages (libstdc++,...). GCC was originally written as the compiler for the GNU operating system.
Installing GCC
The latest version of this document is always available at https://gcc.gnu.org/install/. It refers to the current development sources, instructions for specific released versions are included with the sources.
GCC mirror sites
Our releases are available on the GNU download server and its mirrors. In addition the following sites mirror gcc.gnu.org (Phoenix, Arizona, USA) directly, and should also carry our snapshots:
GCC Releases
GCC releases may be downloaded from our mirror sites.
Downloading GCC
The source distribution includes the Ada, C, C++, Objective-C, COBOL (GCC 15 and later), D (GCC 9 and later), Fortran, Go, Modula-2 (GCC 13 and later) and Algol 68 (GCC 16 and later, experimental) compilers, as well as runtime libraries for C++, Objective-C, COBOL, Fortran and Algol 68.
optimizing compiler produced by the GNU Project, key component of the GNU tool-chain and standard compiler for most projects related to GNU and the Linux kernel.
GCC_10.2_GNU_Compiler_Collection_self-compilation.png
gcc 11 1 0 compiling chicken screenshot
The GNU Compiler Collection (GCC) (formerly GNU C Compiler) is a collection of compilers from the GNU Project that support various programming languages, hardware architectures, and operating systems. The Free Software Foundation … Wikipedia
Factsheet
Original author Richard Stallman
Developer GNU Project
Initial release March 22, 1987; 38 years ago (1987-03-22)
Factsheet
Original author Richard Stallman
Developer GNU Project
Initial release March 22, 1987; 38 years ago (1987-03-22)
🌐
Wikipedia
en.wikipedia.org β€Ί wiki β€Ί GNU_Compiler_Collection
GNU Compiler Collection - Wikipedia
3 weeks ago - The GNU Compiler Collection (GCC) (formerly GNU C Compiler) is a collection of compilers from the GNU Project that support various programming languages, hardware architectures, and operating systems. The Free Software Foundation (FSF) distributes GCC as free software under the GNU General ...
Discussions

GCC, the GNU Compiler Collection 15.1 released
I've been using the latest git sources since some weeks. In general most software I try to compile, worked quite well. I have had a few issues with some C++ code bases though. I don't know whether 15.1 fixed those issues, but I'll eventually find out. It would be good if someone could have a test-infrastructure, to automatically report projects that are failing (I don't track all projects, but e. g. debian could probably try to compile tons of software automatically via a new GCC release and then report that systematically as well. Perhaps that is already done on github, but several projects I tried to compile with the git checked-out GCC did not compile, whereas the latest stable GCC 14.2.0 had no problem with the same source code, so I am not really certain anyone really checks that. I only discovered that semi-accidentally; should probably keep a local log file which projects failed ... will do so next time I see such problems.) More on reddit.com
🌐 r/programming
6
58
April 25, 2025
c++ - What is the difference between g++ and gcc? - Stack Overflow
We seem to be talking past each other, but as a former GCC maintainer, I assure you I am familiar with what the frontends are and are not. 2013-01-29T17:02:28.267Z+00:00 ... For c++ you should use g++. It's the same compiler (e.g. the GNU compiler collection). More on stackoverflow.com
🌐 stackoverflow.com
Whats "gcc-arm-none-eabi" toolchain ??
Gcc-arm-none-eabi is the gcc compiler toolchain for arm outside of a hosted environment. This means that it compiles bare metal code: code running without an already existing OS. β€˜Normal’ gcc uses libraries from the system where its installed, so if you compile a hello world links to and uses the standard library. Gcc-arm would mean that the compiler is a cross compiler: its installed on your system but it compiles for arm. On an arm processor could run a full fledged linux environment so a gcc-arm-aarch64-linux or something like that would compile a program on your pc for that arm system running linux. Now there are meriads of arm systems not running linux which needs code to be compiled for as well. This is the place for the none-eabi variant: it does not use any system library and uses a standard interface for calling functions and other stuff. So in other words this is just the bare metal cross compiler for arm systems. And who makes these? Anyone who wants to. Gcc is an open source project and anyone could compile the toolchain. With compiling you can β€˜select’ your version: do you want to build a linux-on-riscv compiler running on your pc? Definitely possible! The linux distro repos contain a couple of standard versions of gcc of which arm-none-eabi is one More on reddit.com
🌐 r/embedded
31
59
September 10, 2025
GCC: The GNU Compiler Collection subreddit.
Created by the GNU project GCC is a compiler system for C, C++, Objective-C, Fortran, Java, Ada, and Go. More on reddit.com
🌐 r/gcc
August 11, 2010
🌐
Tamu
hprc.tamu.edu β€Ί kb β€Ί Software β€Ί GNU-Compiler-Collection
GNU Compiler Collection (GCC) - Texas A&M HPRC
The GNU Compiler Collection (GCC) is an optimizing compiler produced by the GNU Project. GCC is a key component of the GNU toolchain and the standard compiler for most projects related to GNU and the Linux kernel.
🌐
SourceForge
sourceforge.net β€Ί projects β€Ί gcc-win64
gcc-win64 download | SourceForge.net
Download gcc-win64 for free. x64 build of GCC for Windows. x64 C/C++ compiler for Windows using (unofficial build): - gmp - mpfr - mpc - isl - cloog - mingw-w64 - gcc - seh You need at least core2 command set support to run this application. Note that every version with bundled gdb needs at least Windows 7.
🌐
Reddit
reddit.com β€Ί r/programming β€Ί gcc, the gnu compiler collection 15.1 released
r/programming on Reddit: GCC, the GNU Compiler Collection 15.1 released
April 25, 2025 - In addition to standard package management features, Guix supports transactional upgrades and roll-backs, unprivileged package management, per-user profiles, and garbage collection. A user-land free software distribution for GNU/Linux comes as part of Guix. ... GCC 15.1 release.
🌐
Fossies
fossies.org β€Ί linux β€Ί misc β€Ί gcc-15-20260228.tar.xz
gcc 15-20260228 - Download, Browsing & More
3 days ago - Fossies - The Free Open Source Software archive with special browsing features: Listing of the folder /linux/misc/
Find elsewhere
🌐
GitHub
github.com β€Ί gcc-mirror β€Ί gcc
GitHub - gcc-mirror/gcc
This directory contains the GNU Compiler Collection (GCC). The GNU Compiler Collection is free software. See the files whose names start with COPYING for copying permission. The manuals, and some of the runtime libraries, are under different ...
Starred by 10.7K users
Forked by 4.7K users
Languages Β  C++ 30.1% | C 29.3% | Ada 14.0% | D 5.9% | Go 5.3% | HTML 3.6%
🌐
GNU
gnu.org β€Ί software β€Ί gcc
GCC, the GNU Compiler Collection - GNU Project
The GNU Compiler Collection includes front ends for C, C++, Objective-C, Fortran, Ada, Go, D, Modula-2, and COBOL as well as libraries for these languages (libstdc++,...). GCC was originally written as the compiler for the GNU operating system. The GNU system was developed to be 100% free software, ...
🌐
Red Hat
docs.redhat.com β€Ί en β€Ί documentation β€Ί red_hat_developer_toolset β€Ί 9 β€Ί html β€Ί user_guide β€Ί chap-gcc
Chapter 2. GNU Compiler Collection (GCC) | User Guide | Red Hat Developer Toolset | 9 | Red Hat Documentation
The default language standard setting for Red Hat Developer Toolset is C++14 with GNU extensions, equivalent to explicitly using option -std=gnu++14. Using the C++14 language version is supported in Red Hat Developer Toolset when all C++ objects compiled with the respective flag have been built using Red Hat Developer Toolset 6 or later. Objects compiled by the system GCC in its default mode of C++98 are also compatible, but objects compiled with the system GCC in C++11 or C++14 mode are not compatible.
🌐
Phoronix
phoronix.com β€Ί news β€Ί GCC-Exciting-2025
GCC & The GNU Toolchain's Exciting 2025 With New Languages, More Optimizations - Phoronix
December 31, 2025 - With the end of the year upon us, below is a look at the most popular GNU news stories on Phoronix for 2025 to relive some of the most exciting moments of the year. Or in case you missed any of your daily Phoronix readings, there are plenty of interesting technical tid-bits that attracted a lot of reader interest. GCC Steering Committee Allows New Language Front-End To Land For GCC 16 Joining Ada, C/C++, COBOL, D, Fortran, Go, Modula-2, Objective-C/Objective-C++ and Rust is now another programming language expected to be added for the GCC 16 compiler release due out in the new year.
🌐
Visual Studio Code
code.visualstudio.com β€Ί docs β€Ί cpp β€Ί config-mingw
Using GCC with MinGW
November 3, 2021 - In this tutorial, you configure Visual Studio Code to use the GCC C++ compiler (g++) and GDB debugger from mingw-w64 to create programs that run on Windows.
🌐
Arm Developer
developer.arm.com β€Ί downloads β€Ί - β€Ί arm-gnu-toolchain-downloads
Arm GNU Toolchain Downloads – Arm Developer
Arm GNU Toolchain releases package pre-built binaries of GNU Toolchain for various Arm targets. These are community supported and come with no warranty. For more information, please visit the arm Developer page. This release includes bare-metal and Linux toolchains for various hosts, as described in the Host Support section. Updated GCC to source code based on version 14.2.
🌐
Fsu
sc.fsu.edu β€Ί home β€Ί computing β€Ί tech docs
GNU Compiler Collection (GCC) - Department of Scientific Computing
The GNU Complier Collection (GCC) is an integrated compiler that can compile programs written in C, C++, and Fortran. GCC is both the most general name for the compiler suite, and the name used when the emphasis is on compiling C programs (as the abbreviation formerly stood for "GNU C Compiler").
🌐
Incredibuild
incredibuild.com β€Ί home β€Ί integrations β€Ί gcc
What is GNU Compiler Collection (GCC) | Incredibuild
September 17, 2024 - The GNU Compiler Collection, commonly known as GCC, is a set of compilers and development tools available for Linux, Windows, various BSDs, and a wide assortment of other operating systems.
Top answer
1 of 11
979

gcc and g++ are compiler-drivers of the GNU Compiler Collection (which was once upon a time just the GNU C Compiler).

Even though they automatically determine which backends (cc1 cc1plus ...) to call depending on the file-type, unless overridden with -x language, they have some differences.

The probably most important difference in their defaults is which libraries they link against automatically.

According to GCC's online documentation link options and how g++ is invoked, g++ is roughly equivalent to gcc -xc++ -lstdc++ -shared-libgcc (the 1st is a compiler option, the 2nd two are linker options). This can be checked by running both with the -v option (it displays the backend toolchain commands being run).

By default (and unlike gcc), g++ also adds linker option -lm -- to link against libm which contains implementations for math.h.

2 of 11
592

GCC: GNU Compiler Collection

  • Referrers to all the different languages that are supported by the GNU compiler.

gcc: GNU C      Compiler
g++: GNU C++ Compiler

The main differences:

  1. gcc will compile: *.c\*.cpp files as C and C++ respectively.
  2. g++ will compile: *.c\*.cpp files but they will all be treated as C++ files.
  3. Also if you use g++ to link the object files it automatically links in the std C++ libraries (gcc does not do this).
  4. gcc compiling C files has fewer predefined macros.
  5. gcc compiling *.cpp and g++ compiling *.c\*.cpp files has a few extra macros.

Extra Macros when compiling *.cpp files:

#define __GXX_WEAK__ 1
#define __cplusplus 1
#define __DEPRECATED 1
#define __GNUG__ 4
#define __EXCEPTIONS 1
#define __private_extern__ extern
🌐
Arm Developer
developer.arm.com β€Ί downloads β€Ί - β€Ί gnu-rm
Downloads | GNU Arm Embedded Toolchain Downloads – Arm Developer
The GNU Arm Embedded Toolchain includes the GNU Compiler (GCC) and is available free of charge directly from Arm for embedded software development on Windows, Linux, and Mac OS X operating systems.
🌐
Medium
medium.com β€Ί @developerlife β€Ί gnu-gcc-g-gdb-what-are-these-terms-explained-aec45f251501
GNU, GCC, G++, GDB β€” What are these terms? Explained!! | by A.G. Yogi | Medium
August 24, 2019 - GCC (GNU Compiler Collection) is a compiler system produced by the GNU Project under General Public License, supports various programming languages.
🌐
Arm Developer
developer.arm.com β€Ί Tools and Software β€Ί GNU Toolchain
Arm GNU Toolchain
Use new features from recent Arm Architecture and from open-source projects GCC, Binutils, glibc, Newlib, and GDB.
🌐
Nig
sc.ddbj.nig.ac.jp β€Ί software β€Ί c/c++ (gcc: gnu compiler collection)
C/C++ (GCC: GNU Compiler Collection) | NIG supercomputer
$ spack info gcc AutotoolsPackage: gcc Description: The GNU Compiler Collection includes front ends for C, C++, Objective-C, Fortran, Ada, and Go, as well as libraries for these languages.
🌐
Quora
quora.com β€Ί What-are-GNU-and-GCC
What are GNU and GCC? - Quora
Answer (1 of 2): They both are like Earth and Sky. Totally different! β€”β€”β€” Let's see what GNU stands for… So basically it's just a company which aimed at Free Software aka Open Source Software. They reverse engineered Unix Operating System to create a Unix like system but free for use to anyone...