Ch 12. The Optimizer [ HP Pascal/iX Programmer's Guide ] MPE/iX 5.0 Documentation
HP Pascal/iX Programmer's Guide
Chapter 12 The Optimizer
The optimizer is an optional part of the compiler that modifies your
program so that it uses machine resources more efficiently, using less
space and running faster.
This chapter explains:
* When and how to use the optimizer.
* Level one and level two optimization.
* Optimizer assumptions and what cannot be optimized.
* How to write code that is easily optimized.
* What to do if your optimized program fails.
In examining the examples in this chapter, please note:
* The optimizer operates on machine code rather than source code,
but the examples use source code wherever possible because it is
easier to understand. Transformations that cannot be shown at the
source code level are shown in mnemonic assembly language.
* The optimizer's effectiveness depends strongly on interaction
between transformations, but each example illustrates a single
transformation for the sake of clarity.
MPE/iX 5.0 Documentation