Skip to Content
C语言核心技术(原书第2版)
book

C语言核心技术(原书第2版)

by Peter Prinz, Tony Crawford
August 2017
Intermediate to advanced
798 pages
17h 44m
Chinese
China Machine Press
Content preview from C语言核心技术(原书第2版)
673
第19章
使用GCC编译C程序
本章介绍如何使用
GCC
将
C
程序源代码编译成可执行程序。首先,按照与编译过程相对
应的次序,介绍程序控制的基本选项。然后,介绍如何使用
GCC
警告选项,以排除程序
中的疑难问题。最后,概述编译器优化选项。
本章将帮助你建立对
GCC
编译器的基本认识。如果你需要关于
GCC
的更多细节信息,例
如特定架构或系统特定选项等,本章的基本知识将有助于你尽快从
GCC
手册中找到所需
要的内容。
GCC
手册包含在
GCC
软件包中,它有三种文件格式:
Texinfo
、
PostScript
和
HTML
,也可以从网址
http://gcc.gnu.org/onlinedocs/
下载
GCC
手册。
19.1 GNU编译器套件
GCC
原来代表“
GNU C Compiler
”的意思。自从面世后,
GCC
逐渐扩充、发展,现在
不仅仅支持
C
语言,还支持其他很多语言,包括
C++
、
Ada
、
Objective-C
、
Fortran
和
Java
等。因此,
GCC
的意思被重新定义为“
GNU Compiler Collection
”。该编译器包含多种
前端处理器,以翻译各种不同语言。当然,在本书中我们重点讨论的是基于
C
语言的前
端处理器
GCC
。
GCC
也是一种多目标(
multitarget
)编译器;换句话说,它通过使用可互换的后端处理
器,为多种不同的计算机架构生成相应的可执行程序。正如模块化概念所提倡的,
GCC
可被用作交互式编译器;也就是说,可以使用
GCC
对所有设备与操作系统创建可执行程
序,不需要局限于仅仅是运行
GCC
的平台。然而,这么做需要特殊的配置和安装,大多 ...
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

算法精讲视频课程:24篇系列讲座

算法精讲视频课程:24篇系列讲座

罗伯特·塞奇威克, 凯文·韦恩(Kevin Wayne)

Publisher Resources

ISBN: 9787111562207