Skip to main content

Analyzing Code Produced with GCC Compilers

  • Chapter
The Definitive Guide to GCC
  • 1156 Accesses

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.)

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 59.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 79.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Rights and permissions

Reprints 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

Publish with us

Policies and ethics