The Definitive Guide to GCC, Second Edition
This book, The Definitive Guide to GCC, is about how to build, install, customize, use, and troubleshoot GCC version 4.x. GCC has long been available for most major hardware and operating system platforms and is often the preferred family of compilers. As a general-purpose set of compilers, GCC prod...
Đã lưu trong:
Tác giả chính: | |
---|---|
Định dạng: | Sách |
Ngôn ngữ: | English |
Được phát hành: |
Apress
2013
|
Những chủ đề: | |
Truy cập trực tuyến: | https://scholar.dlu.edu.vn/thuvienso/handle/DLU123456789/34868 |
Các nhãn: |
Thêm thẻ
Không có thẻ, Là người đầu tiên thẻ bản ghi này!
|
Thư viện lưu trữ: | Thư viện Trường Đại học Đà Lạt |
---|
id |
oai:scholar.dlu.edu.vn:DLU123456789-34868 |
---|---|
record_format |
dspace |
institution |
Thư viện Trường Đại học Đà Lạt |
collection |
Thư viện số |
language |
English |
topic |
Computer |
spellingShingle |
Computer Hagen, William von The Definitive Guide to GCC, Second Edition |
description |
This book, The Definitive Guide to GCC, is about how to build, install, customize, use, and troubleshoot GCC version 4.x. GCC has long been available for most major hardware and operating system platforms and is often the preferred family of compilers. As a general-purpose set of compilers, GCC produces high-quality, fast code. Due to its design, GCC is easy to port to different architectures, which contributes to its popularity. GCC, along with GNU Emacs, the Linux operating system, the Apache Web server, the Sendmail mail server, and the
BIND DNS server, are showpieces of the free software world and proof that sometimes you can get a free lunch.
Why a Book About GCC?
I wrote this book, and you should read it, for a variety of reasons: it covers version 4.x; it is the only book that covers general GCC usage; and I would argue that it is better than GCC’s own documentation. You will not find more complete coverage of GCC’s features, quirks, and usage anywhere else in a single volume. There are no other up-to-date sources of information on GCC, excluding GCC’s own documentation. GCC usually gets one or two chapters in programming books and only a few paragraphs
in other more general titles. GCC’s existing documentation, although thorough and comprehensive, targets a programmingsavvy
reader. There’s certainly nothing wrong with this approach, which is certainly the proper
approach for advanced users, but GCC’s own documentation leaves the great majority of its users out in the cold. Much of The Definitive Guide to GCC is tutorial and practical in nature, explaining why you use one option or why you should not use another one. In addition, explaining auxiliary
tools and techniques that are relevant to GCC but not explicitly part of the package helps make this book a complete and usable guide and reference. Showing you how to use the compilers in the GCC family and related tools, and helping you get your work done are this book’s primary goals. Most people, including many long-time programmers, use GCC the way they learned or were taught to use it. That is, many GCC users treat the compiler as a black box, which means that they invoke it by using a small and familiar set of options and arguments they have memorized, shoving source files in one end, and then receiving a compiled, functioning program from the other end. With a powerful set of compilers such as GCC, there are indeed stranger (and more useful) things
than were dreamed of in Computer Science 101. Therefore, another goal when writing The Definitive Guide to GCC was to reveal cool but potentially obscure options and techniques that you may find useful when building or using GCC and related tools and libraries. Inveterate tweakers, incorrigible tinkerers, and the just plain adventurous among you will also enjoy the chance to play with the latest and greatest version of GCC and the challenge of bending a complex piece of software to your will, especially if you have instructions that show you how to do so
with no negative impact on your existing system. |
format |
Book |
author |
Hagen, William von |
author_facet |
Hagen, William von |
author_sort |
Hagen, William von |
title |
The Definitive Guide to GCC, Second Edition |
title_short |
The Definitive Guide to GCC, Second Edition |
title_full |
The Definitive Guide to GCC, Second Edition |
title_fullStr |
The Definitive Guide to GCC, Second Edition |
title_full_unstemmed |
The Definitive Guide to GCC, Second Edition |
title_sort |
definitive guide to gcc, second edition |
publisher |
Apress |
publishDate |
2013 |
url |
https://scholar.dlu.edu.vn/thuvienso/handle/DLU123456789/34868 |
_version_ |
1819790334104698880 |
spelling |
oai:scholar.dlu.edu.vn:DLU123456789-348682014-01-20T01:35:07Z The Definitive Guide to GCC, Second Edition Hagen, William von Computer This book, The Definitive Guide to GCC, is about how to build, install, customize, use, and troubleshoot GCC version 4.x. GCC has long been available for most major hardware and operating system platforms and is often the preferred family of compilers. As a general-purpose set of compilers, GCC produces high-quality, fast code. Due to its design, GCC is easy to port to different architectures, which contributes to its popularity. GCC, along with GNU Emacs, the Linux operating system, the Apache Web server, the Sendmail mail server, and the BIND DNS server, are showpieces of the free software world and proof that sometimes you can get a free lunch. Why a Book About GCC? I wrote this book, and you should read it, for a variety of reasons: it covers version 4.x; it is the only book that covers general GCC usage; and I would argue that it is better than GCC’s own documentation. You will not find more complete coverage of GCC’s features, quirks, and usage anywhere else in a single volume. There are no other up-to-date sources of information on GCC, excluding GCC’s own documentation. GCC usually gets one or two chapters in programming books and only a few paragraphs in other more general titles. GCC’s existing documentation, although thorough and comprehensive, targets a programmingsavvy reader. There’s certainly nothing wrong with this approach, which is certainly the proper approach for advanced users, but GCC’s own documentation leaves the great majority of its users out in the cold. Much of The Definitive Guide to GCC is tutorial and practical in nature, explaining why you use one option or why you should not use another one. In addition, explaining auxiliary tools and techniques that are relevant to GCC but not explicitly part of the package helps make this book a complete and usable guide and reference. Showing you how to use the compilers in the GCC family and related tools, and helping you get your work done are this book’s primary goals. Most people, including many long-time programmers, use GCC the way they learned or were taught to use it. That is, many GCC users treat the compiler as a black box, which means that they invoke it by using a small and familiar set of options and arguments they have memorized, shoving source files in one end, and then receiving a compiled, functioning program from the other end. With a powerful set of compilers such as GCC, there are indeed stranger (and more useful) things than were dreamed of in Computer Science 101. Therefore, another goal when writing The Definitive Guide to GCC was to reveal cool but potentially obscure options and techniques that you may find useful when building or using GCC and related tools and libraries. Inveterate tweakers, incorrigible tinkerers, and the just plain adventurous among you will also enjoy the chance to play with the latest and greatest version of GCC and the challenge of bending a complex piece of software to your will, especially if you have instructions that show you how to do so with no negative impact on your existing system. About the Author . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvii About the Technical Reviewer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xix Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xxi Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiii ■CHAPTER 1 Using GCC’s C Compiler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 ■CHAPTER 2 Using GCC’s C++ Compiler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 ■CHAPTER 3 Using GCC’s Fortran Compiler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 ■CHAPTER 4 Using GCC’s Java Compiler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 ■CHAPTER 5 Optimizing Code with GCC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 ■CHAPTER 6 Analyzing Code Produced with GCC Compilers . . . . . . . . . . . . . . . . . . . . 119 ■CHAPTER 7 Using Autoconf and Automake . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151 ■CHAPTER 8 Using Libtool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177 ■CHAPTER 9 Troubleshooting GCC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197 ■CHAPTER 10 Additional GCC and Related Topic Resources . . . . . . . . . . . . . . . . . . . . . . 215 ■CHAPTER 11 Compiling GCC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227 ■CHAPTER 12 Building and Installing Glibc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247 ■CHAPTER 13 Using Alternate C Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281 ■CHAPTER 14 Building and Using C Cross-Compilers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299 ■APPENDIX A Using GCC Compilers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321 ■APPENDIX B Machine- and Processor-Specific Options for GCC . . . . . . . . . . . . . . . . . 403 ■APPENDIX C Using GCC’s Online Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 491 ■INDEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 505 2013-07-23T02:43:05Z 2013-07-23T02:43:05Z 2006 Book 978-1-59059-585-5 https://scholar.dlu.edu.vn/thuvienso/handle/DLU123456789/34868 en application/pdf Apress |