The Definitive Guide to GCCThis book, The Definitive Guide to GCC, is about how to build, install, customize, use, and troub- shoot 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 documen- tion. 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 pa- graphs in other more general titles. |
Contents
CHAPTER 1 Using GCCs C Compiler | 1 |
CHAPTER 2 Using GCCs C++ Compiler | 41 |
CHAPTER 3 Using GCCs Fortran Compiler | 53 |
CHAPTER 4 Using GCCs 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 11 Compiling GCC | 227 |
CHAPTER 12 Building and Installing Glibc | 247 |
CHAPTER 13 Using Alternate C Libraries | 281 |
CHAPTER 14 Building and Using C CrossCompilers | 299 |
APPENDIX A Using GCC Compilers | 321 |
APPENDIX B Machine and ProcessorSpecific Options for GCC | 403 |
APPENDIX C Using GCCs Online Help | 491 |
Index | 505 |
Other editions - View all
Common terms and phrases
actually aligned application architecture arguments assembler assume attribute autoconf automake binary build chapter checking command common compatibility configuration contains contents copy create cross-compiler debugging default defined disable discussed display Dumps enables environment error example execute existing extensions floating-point format Fortran function GCC compilers GCC’s Glibc header identify Info initialized installed instructions integer Java language Libtool linker Linux load loop macro memory multiple newsgroups Note object operations optimization option option causes GCC option tells GCC output package pass perform platform pointer possible preprocessor problems processor produced profiling provides references result runtime script shared libraries source code spec Specifying this option standard statement static string symbol Table users variable warning