Abstract
Chapter 2 discussed the various types of optimizations that GCC’s C compiler can perform for you. Some of these optimizations are automatic, whereas others only make sense based on the characteristics of the application you are trying to optimize. For example, you can only decide where and if to use optimizations such as unrolling or inlining loops after studying your application and identifying loops that might benefit from these optimizations. (Unrolling or inlining loops means to insert the code for each iteration of a loop in sequence so that a loop is no longer present; the loop is replaced by a series of sequential statements that explicitly perform the contents of the loop for each value of the variable that controls the loop.)
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2006 William von Hagen
About this chapter
Cite this chapter
von Hagen, W. (2006). Analyzing Code Produced with GCC Compilers. In: The Definitive Guide to GCC. Apress. https://doi.org/10.1007/978-1-4302-0219-6_6
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0219-6_6
Publisher Name: Apress
Print ISBN: 978-1-59059-585-5
Online ISBN: 978-1-4302-0219-6
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books