Skip to Content
LINUX系統程式設計 第二版
book

LINUX系統程式設計 第二版

by Robert Love
December 2013
Intermediate to advanced
496 pages
8h 57m
Chinese
GoTop Information, Inc.
Content preview from LINUX系統程式設計 第二版
附錄 A
GCC C 語言所做的擴充
GNU Compiler Collection(簡稱 GCC)對 C 語言做了許多擴充,其中有一些已被證明
對系統程式設計者具有特殊的價值。本附錄將介紹的 C 語言擴充,主要是讓程式設計者
得以把「關於程式碼之行為與用法的」額外資訊提供給編譯器。接著,編譯器會利用此
資訊產生更有效率的機器碼。其他的擴充用於填補 C 程式語言的缺口,特別是較低階的
部分。
GCC 所提供的若干擴充,現在已經存在於最新的 C 語言標準 ISO C11。這些擴充功能有
若干類似於它們的 C11 表親,但是 ISO C11 所實現的其他擴充則頗為不同。新的程式碼
應該使用這些功能經編準化的變體。本附錄將不會說明此類擴充;只會探討 GCC 特有
的擴充。
GNU C
GCC 所支援的 C 語言稱為 GNU C1990 年代,GNU C 填補了 C 語言若干的缺口,提
供複變數(complex variable)、零長度陣列(zero-length array)、內嵌(inline)函式以
及具名初始程序(named initializer)之類的功能。但經過了將近十年的時間,C 語言終
於升級,並進行了 ISO C99 的標準化,接著進行了 ISO C11 的標準化,GNU C 的擴充
變得無關緊要。儘管如此,GNU C 仍繼續提供有用的功能,而且許多 Linux 程式設計者
仍在他們的與 C99 C11 相容之程式碼中使用 GNU C 的子集。
完全以 GNU C 寫成的程式中,Linux ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

AGILE學習手冊 | SCRUM、XP、精實和看板方法

AGILE學習手冊 | SCRUM、XP、精實和看板方法

Andrew Stellman, Jennifer Greene
管理Kubernetes

管理Kubernetes

Brendan Burns, Craig Tracey
算法技术手册(原书第2 版)

算法技术手册(原书第2 版)

George T.Heineman, Gary Pollice, Stanley Selkow

Publisher Resources

ISBN: 9789862769812