GCC Hacks in the Linux Kernel: Discover GCC Extensions for the C Language | Linux Today

GCC Hacks in the Linux Kernel: Discover GCC Extensions for the C Language

Written By
Web Webster
Web Webster
Nov 21, 2008

“GCC and Linux are a great pair. Although they are independent
pieces of software, Linux is totally dependent on GCC to enable it
on new architectures. Linux further exploits features in GCC,
called extensions, for greater functionality and optimization. This
article explores many of these important extensions and shows you
how they’re used within the Linux kernel.

GCC in its current stable version (version 4.3.2) supports three
versions of the C standard:

“* The original International Organization for Standardization
(ISO) standard of the C language (ISO C89 or C90)
* ISO C90 with amendment 1
* The current ISO C99 (the default standard that GCC uses and that
this article assumes)

Note: This article assumes that you are using the ISO C99
standard. If you specify a standard older than the ISO C99 version,
some of the extensions described in this article may be disabled.
To specify the actual standard that GCC uses, you can use the -std
option from the command line. Use the GCC manual to verify which
extensions are supported in which versions of the standard (see
Resources for a link).”


Complete Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.