Building GCC from scratch is generally perceived as a difficult, complex, and risky undertaking. We respectfully disagree. Admittedly, the process of compiling a compiler from source is complex, but the GNU development team takes care of most of the complexity for you. Building the compiler imposes no risk at all, but installing it, or, rather, installing it incorrectly, can destabilize your system. You can, however, install the newly built compiler as a supplemental or secondary compiler, rather than as the system compiler, and completely sidestep this risk. On the other hand, if you follow the instructions in this chapter, you can install GCC 3.3 as your primary compiler without impacting your system’s overall stability. One of the primary points of this chapter is to demonstrate that compiling GCC from scratch is not difficult. It requires some care and attention to detail—and lots of time!—but, as with many tasks, good instructions make it simple to do. If you need some motivation to undertake the upgrade, the section toward the end of this chapter titled “What Is New in GCC 3?” should suffice. It covers a lot of the improvements that make it worthwhile to upgrade.
KeywordsSource Code Test Suite Disk Space Source Tree Home Directory
Unable to display preview. Download preview PDF.