- 9
- 0
- 约2.1万字
- 约 6页
- 2016-03-12 发布于山西
- 举报
gcc hacks in the linux kernel
GCC hacks in the Linux kernel
Discover GCC extensions for the C language
Level: Intermediate
M. Tim Jones, Consultant Engineer, Emulex Corp.
18 Nov 2008
The Linux kernel uses several special capabilities of the GNU Compiler Collection (GCC) suite. These
capabilities range from giving you shortcuts and simplifications to providing the compiler with hints for
optimization. Discover some of these special GCC features and learn how to use them in the Linux kernel.
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 theyre 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).
The available C extensions can be classified in several ways. This article Applicable versions
puts them in two broad categories: This article focuses on the use of GCC
extensions in the Linux kernel and
Functionality extensions br
您可能关注的文档
最近下载
- 贝纳利BJ250维修手册.pdf VIP
- PasswortD A1 听力原文-德语学习资料.pdf VIP
- 一体化污水处理设备施工工艺.docx VIP
- 自动可调螺杆机组触摸屏说明书_SCC60-TP-V2.05.doc VIP
- 学堂在线 雨课堂 学堂云 如何写好科研论文 章节测试答案.docx VIP
- 人教版八年级数学下册基础知识专项讲练 专题17.20 勾股定理(中考真题专练)(巩固篇)(专项练习).docx VIP
- 教育实习鉴定实习内容.docx VIP
- 《GBT11616-2013-同步带传动节距型号MXL、XXL、XL、L、H、XH和XXH同步带尺寸》.pdf
- 离婚协议书(无子女版).docx VIP
- pluronic系列产品指标.pptx VIP
原创力文档

文档评论(0)