Summary

This chapter has extended the discussion of optimization begun in Chapter 10 at the assembly language level to an exploration of the sophisticated capabilities of compilers for high-level languages. Our examination of compiler output has explored the effect of numerous levels and types of optimization, primarily on one very short program in similar versions expressed in the C and FORTRAN programming languages.

We have explained how to find out what actual sequence of machine instructions a compiler has generated. Different compilers for Linux and HP-UX programming environments operating at ostensibly similar levels of optimization produced machine code that varied in appearance, but still conformed to the programmer's logical intent and ...

Get Itanium® Architecture for Programmers: Understanding 64-Bit Processors and EPIC Principles now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.