-c

Compile or assemble the source files, but do not link. The linking stage simply is not done. The ultimate output is in the form of an object file for each source file.

By default, the object file name for a source file is made by replacing the suffix .c, .i, .s, etc., with .o. Unrecognized input files, not requiring compilation or assembly, are ignored.

-o file

Place output in file file. This applies regardless to whatever sort of output is being produced, whether it be an executable file, an object file, an assembler file or preprocessed C code. If -o is not specified, the default is to put an executable file in a.out, the object file for source.suffix in source.o, its assembler file in source.s, a precompiled header file in source.suffix.gch, and all preprocessed C source on standard output.

More can be found in GCC Manual Page

Answer from StarPinkER on Stack Overflow
🌐
Greenfield Community College
gcc.mass.edu › academics
Academics – Greenfield Community College
GCC’s Transfer Office helps you make a successful transition to a 4-year program. With comprehensive transfer counseling, programs that meet the MassTransfer requirements for transfer to a bachelor’s degree program, and agreements with both public and private schools throughout New England, you CAN get there from here!
Discussions

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
GCC: anonymous bit fields padding (x-post /r/gcc)
On Linux x86_64, long is 8 bytes and has the same alignment requirement. If the struct size was 268 the members of an array of such structures would not always be divisible by 8, so 4 bytes of padding is added. More on reddit.com
🌐 r/C_Programming
28
14
January 30, 2017
New C++ features in GCC 12
Multidimensional subscript operator I'm knee deep in tensors, and this is the one I want most. Being able to finally write value result = some_tensor[i, j, k]; Would be lovely More on reddit.com
🌐 r/cpp
76
220
April 25, 2022
[C++] Makefile and SDL using gcc on linux

Your libraries need to be specified when building your executable, not when building your .o files.

More on reddit.com
🌐 r/learnprogramming
5
9
August 17, 2011

-c

Compile or assemble the source files, but do not link. The linking stage simply is not done. The ultimate output is in the form of an object file for each source file.

By default, the object file name for a source file is made by replacing the suffix .c, .i, .s, etc., with .o. Unrecognized input files, not requiring compilation or assembly, are ignored.

-o file

Place output in file file. This applies regardless to whatever sort of output is being produced, whether it be an executable file, an object file, an assembler file or preprocessed C code. If -o is not specified, the default is to put an executable file in a.out, the object file for source.suffix in source.o, its assembler file in source.s, a precompiled header file in source.suffix.gch, and all preprocessed C source on standard output.

More can be found in GCC Manual Page

Answer from StarPinkER on Stack Overflow
🌐
Gogebic
gccics.gogebic.edu › ICS › My_GCC.jnz
My GCC | Welcome to My GCC
Reminder: The Personal Contact Update Form and the Student Financial Responsibility Agreement Form (located below) are both required to be completed before you can register for courses in a new term. If you have questions or need help, please reach out to your advisor · You will need the following ...
🌐
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.
🌐
CISA
cisa.gov › resources-tools › groups › government-coordinating-councils
Government Coordinating Councils | CISA
Government Coordinating Councils (GCCs) are formed as the government counterpart for each Sector Coordinating Council (SCC) to enable interagency and cross-jurisdictional coordination.
Find elsewhere
🌐
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.
🌐
Summit 7
summit7.us › what-is-microsoft-365-gcc
What is Microsoft 365 GCC? | M365 For CMMC
Microsoft also conducts thorough background checks and investigations on all of its administrators, technicians and architects to ensure they are US Citizens with seven years of US employment history and lack any recent criminal activity. ... Microsoft has for years suggested Microsoft 365 GCC High for DFARS 7012 compliance and continues to recommend GCC High for companies looking to meet CMMC Levels 2-3.
🌐
Genesee Community College
genesee.edu › home › mygcc login
myGCC Login - Genesee Community College
December 6, 2022 - One College Rd Batavia, NY 14020 (585) 343-0055 or (866) CALL-GCC · View All Campus Locations ·
🌐
LinkedIn
linkedin.com › company › gccusa
GCC | LinkedIn
GCC is a leading producer of cement, ready-mix concrete, aggregates and innovative solutions for the construction industry. Our operations include facilities in 15 states across the center of the U.S. We focus on our customers and driving the market.
🌐
GCC
gcc.com › home › community
Community - GCC
August 12, 2024 - GCC is part of the community where our employees live and where we do business. In Mexico, the GCC Foundation is the cornerstone of our community collaboration, investing in communities through education and sustainable development.
🌐
Stanford
web.stanford.edu › class › archive › cs › cs107 › cs107.1202 › resources › gcc
CS107 Compiling C Programs with GCC
It is one of the most widely used compilers, and it is both Free Software, and available on many different computing platforms. gcc performs the compilation step to build a program, and then it calls other programs to assemble the program and to link the program's component parts into an executable ...
🌐
Visual Studio Code
code.visualstudio.com › docs › cpp › config-mingw
Using GCC with MinGW
November 3, 2021 - You can install the C/C++ extension by searching for 'C++' in the Extensions view (⇧⌘X (Windows, Linux Ctrl+Shift+X)). 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.
🌐
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.
🌐
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.
🌐
Yahoo! Finance
finance.yahoo.com › quote › GCC.MX
GCC, S.A.B. de C.V. (GCC.MX) Stock Price, News, Quote & History - Yahoo Finance
3 weeks ago - GCC, S.A.B. de C.V., through its subsidiaries, produces, markets, and distributes cement, aggregates, ready-mix concrete, and other materials for the construction industry in Mexico and the United States.
🌐
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.
🌐
GNU
gnu.org › software › gnu-c-manual › gnu-c-manual.html
The GNU C Reference Manual
C99 features and GNU extensions are explicitly labeled as such. By default, GCC will compile code as C89 plus GNU-specific extensions. Much of C99 is supported; once full support is available, the default compilation dialect will be C99 plus GNU-specific extensions.
🌐
Columbiagreene
columbiagreene.edu › home › mycgcc
MyCGCC | Columbia-Greene Community College
August 5, 2025 - MyCGCC is your dashboard as a Columbia-Greene student — everything you need, all in one place. Below you will find information and links to Banner Self-Service, e-mail and Office 365, Brightspace®, and Degree Works.