🌐
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
Include the URL of the gcc.gnu.org mirror area, the country/city where the mirror is located, and a contact e-mail address (and name if appropriate).
GCC Releases
GCC releases may be downloaded from our mirror sites. Important: these are source releases, so will be of little use if you do not already have a C++ compiler installed. As one option, there are pre-compiled binaries.
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)
🌐
JDoodle
jdoodle.com β€Ί c-online-compiler
Online Compiler and Editor/IDE for Java, C, C++, PHP, Python, Ruby, Perl - Code and Run Online
JDoodle is an Online Compiler, Editor, IDE for Java, C, C++, PHP, Perl, Python, Ruby and many more. You can run your programs on the fly online, and you can save and share them with others. Quick and Easy way to compile and run programs online.
Discussions

Using GCC to compile C code - Stack Overflow
I installed MinGW on my Windows 8 laptop and tried to compile a C code file with gcc test.c -o test.exe the compiler gave no warnings or errors but it did not create test.exe how do i get the com... More on stackoverflow.com
🌐 stackoverflow.com
compiler - Isn't there a chicken-and-egg issue since GCC is written in C++ itself? - Software Engineering Stack Exchange
Since 4.8 release, the C++ compiler GCC (the G++ part of it) is written not in C anymore, but in C++ itself. I have a hypothetical question on this. I wonder how to compile the C++ code of GCC on ... More on softwareengineering.stackexchange.com
🌐 softwareengineering.stackexchange.com
December 12, 2014
Why is GCC the only compiler that cares deeply about C?
Microsoft doesn't care about C. The win32 API is an ANSI C API and Windows programs haven't been written in C regularly since the Windows 3.x era. They lagged behind for a while, not implementing C99, but have since turned around and MSVC is C17 with more or less all the features. They even have a standards-compliant preprocessor now, available with a project setting or switch. It's weird that you have to specifically ask for the compliant preprocessor, but making that the default would break a lot of old projects. But anyway, you can do modern C in MSVC now, they're up to speed. Clang is more or less on par with GCC, and they both represent the state of the art of C. More on reddit.com
🌐 r/C_Programming
155
218
December 22, 2024
How to compile C++ code using GCC C compiler? - Programming & Development - Spiceworks Community
Hi, I have a C program which is compile using GCC C compiler, unfortunately I can not compile C++ code inside my C code. Let’s put an example: using namespace std; // this statement is inside main.c file. This will not compile and generate error. That was just a simple example to illustrate ... More on community.spiceworks.com
🌐 community.spiceworks.com
0
April 6, 2010
🌐
GeeksforGeeks
geeksforgeeks.org β€Ί linux-unix β€Ί gcc-command-in-linux-with-examples
gcc command in Linux with examples - GeeksforGeeks
October 4, 2025 - GCC stands for GNU Compiler Collections which is used to compile mainly C and C++ language.
🌐
University of Alabama
oit.ua.edu β€Ί software β€Ί gcc
GCC - Office of Information Technology | The University of Alabama
Type gcc in a Cygwin terminal window. If you see gcc: fatal error: no input files, you are all set. This means the gcc command/compiler installed and you need to enter a C program for compilation.
🌐
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 GNU Compiler Collection, commonly abbreviated GCC, is a portable compiler suite with support for a wide selection of programming languages. Red Hat Developer Toolset is distributed with GCC 9.3.1. This version is more recent than the version included in Red Hat Enterprise Linux and provides ...
Find elsewhere
🌐
OnlineGDB
onlinegdb.com β€Ί online_c_compiler
Online C Compiler - online editor
OnlineGDB is online IDE with c compiler. Quick and easy way to compile c program online. It supports gcc compiler for c.
🌐
Ubuntu
documentation.ubuntu.com β€Ί ubuntu-for-developers β€Ί tutorials β€Ί gcc-use
Develop with GCC on Ubuntu - Ubuntu for Developers
October 24, 2025 - Use the -v option to display detailed information on how gcc invokes the individual tools that handle the intermediate steps. ... gcc can compile source code in many programming languages, including C, C++, and Assembly.
🌐
Opensource.com
opensource.com β€Ί article β€Ί 22 β€Ί 5 β€Ί gnu-c-compiler
A programmer's guide to GNU C Compiler | Opensource.com
May 20, 2022 - C is a well-known programming language, popular with experienced and new programmers alike. Source code written in C uses standard English terms, so it's considered human-readable. However, computers only understand binary code. To convert code into machine language, you use a tool called a compiler. A very common compiler is GCC (GNU C Compiler).
🌐
Programiz
programiz.com β€Ί c-programming β€Ί online-compiler
Online C Compiler - Programiz
// Online C compiler to run C program online #include <stdio.h> int main() { // Write C code here printf("Try programiz.pro"); return 0; }
🌐
DigitalOcean
digitalocean.com β€Ί community β€Ί tutorials β€Ί c-compiler-windows-gcc
Install C/GCC Compiler for Windows | DigitalOcean
August 3, 2022 - One of the preferred way to install C/GCC compiler is to use CodeBlocks. Just install it, launch it and start coding to keep things simple.
🌐
Visual Studio Code
code.visualstudio.com β€Ί docs β€Ί cpp β€Ί config-mingw
Using GCC with MinGW
November 3, 2021 - Get the latest version of MinGW-w64 via MSYS2, which provides up-to-date native builds of GCC, MinGW-w64, and other helpful C++ tools and libraries. This will provide you with the necessary tools to compile your code, debug it, and configure it to work with IntelliSense.
🌐
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.
🌐
Compiler Explorer
godbolt.org
Compiler Explorer
Compiler Explorer is an interactive online compiler which shows the assembly output of compiled C++, Rust, Go (and many more) code.
🌐
Linux Man Pages
man7.org β€Ί linux β€Ί man-pages β€Ί man1 β€Ί gcc.1.html
gcc(1) - Linux manual page
When you compile C++ programs, you should invoke GCC as g++ instead. The gcc program accepts options and file names as operands. Many options have multi-letter names; therefore multiple single-letter options may not be grouped: -dv is very different from -d -v.
🌐
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.
🌐
RapidTables
rapidtables.com β€Ί code β€Ί linux β€Ί gcc.html
GCC C compiler
GCC is a short of GNU Compiler Collection, a C compiler for Linux.
🌐
Spiceworks
community.spiceworks.com β€Ί programming & development
How to compile C++ code using GCC C compiler? - Programming & Development - Spiceworks Community
April 6, 2010 - Hi, I have a C program which is compile using GCC C compiler, unfortunately I can not compile C++ code inside my C code. Let’s put an example: using namespace std; // this statement is inside main.c file. This will not compile and generate error. That was just a simple example to illustrate ...