Using the GNU Compiler Collection (GCC)

This file documents the use of the GNU compilers.

Copyright © 1988-2020 Free Software Foundation, Inc.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with the Invariant Sections being “Funding Free Software”, the Front-Cover Texts being (a) (see below), and with the Back-Cover Texts being (b) (see below). A copy of the license is included in the section entitled “GNU Free Documentation License”.

(a) The FSF’s Front-Cover Text is:

A GNU Manual

(b) The FSF’s Back-Cover Text is:

You have freedom to copy and modify this GNU Manual, like GNU software. Copies published by the Free Software Foundation raise funds for GNU development.

Short Table of Contents

Table of Contents

Next: G++ and GCC   [Contents][Index]


This manual documents how to use the GNU compilers, as well as their features and incompatibilities, and how to report bugs. It corresponds to the compilers (GCC) version 10.2.0. The internals of the GNU compilers, including how to port them to new targets and some information about how to write front ends for new languages, are documented in a separate manual. See Introduction in GNU Compiler Collection (GCC) Internals.

G++ and GCC:


You can compile C or C++ programs.



Language standards supported by GCC.

Invoking GCC:


Command options supported by ‘gcc’.

C Implementation:


How GCC implements the ISO C specification.

C++ Implementation:


How GCC implements the ISO C++ specification.

C Extensions:


GNU extensions to the C language family.

C++ Extensions:


GNU extensions to the C++ language.



GNU Objective-C runtime features.



Binary Compatibility



gcov—a test coverage program.



gcov-tool—an offline gcda profile processing program.



gcov-dump—an offline gcda and gcno profile dump tool.



lto-dump—Tool for dumping LTO object files.



If you have trouble using GCC.



How, why and where to report bugs.



How To Get Help with GCC



How to contribute to testing and developing GCC.



How to help assure funding for free software.

GNU Project:


The GNU Project and GNU/Linux.



GNU General Public License says how you can copy and share GCC.

GNU Free Documentation License:


How you can copy and share this manual.



People who have contributed to GCC.

Option Index:


Index to command line options.

Keyword Index:


Index of concepts and symbol names.

Next: G++ and GCC   [Contents][Index]