GCC
Online References
Predefined Macros
GCC Predefined Macros |
|||
MACRO |
GCC OPTION |
VERSION |
DESCRIPTION |
__GNUC__ |
|
all |
Defined to the major version of the compiler. |
__GNUC_MINOR__ |
|
all |
Defined to the minor version of the compiler. |
__GNUC_PATCHLEVEL__ |
|
all |
Defined to the micro (patch) version of the compiler. |
__GNUG__ |
|
all |
Defined to the same value as __GUNC__ in C++ mode. |
__CYGWIN__ |
all |
Defined when compiling for the Cygwin environment without -mno-cygwin option. |
|
__MINGW32__ |
all |
Defined when compiling for the MinGW environment or when compiling for the Cygwin environment with -mno-cygwin option specified. |
|
_WIN32 |
all |
Defined when compiling for the MinGW environment or when compiling for the Cygwin environment with -mno-cygwin option specified. |
|
Discussion Forums
Bug Reports
GCC Bugzilla for FSF releases of GCC only.
Red Hat Bugzilla for Red Hat releases of GCC only.
Novell Bugzilla for Novell (formerly SuSE) releases of GCC only.
Additional Resources
New GCC Heavy on Optimization a March 2nd, 2006 internetnews.com article By Sean Michael Kerner.
The Definitive Guide to GCC, Second Edition by William von Hagen.
An Introduction to GCC by Brian J. Gough, Richard M. Stallman.
Performance Tuning with GCC, Part 1, a September 2005 Red Hat Magazine article by Diego Novillo.
Optimization in GCC, a January 26th, 2005 Linux Journal article by M. Tim Jones.
GCC Myths and Facts, a February 15th, 2003 Freshmeat editorial by Joao Seabra.