Optimization
Readable and maintainable source text is not always organized for
efficient execution. The compiler can optimize the arrangement of
instructions and data use for faster execution and smaller memory
requirements. This chapter describes the different ways in which the
compiler can optimize your program and explains ways to control
optimization.
Optimization Categories and Mechanisms
Compiler optimizations affect these aspects of your program:
•
constants and expression evaluation
•
calls, jumps, and branches
•
loop optimizations
•
memory optimizations
•
register use
•
instruction selection and sequencing
Some optimizations are independent of the i960 architecture and others
take specific advantage of the i960 processor instruction set and registers.
Program-level optimizations are also available when profile data exists for
the program.
11
11-1