Contents    Page-10    Prev    Next    Page+10    Index   

Easy Optimization Techniques

Some good optimization techniques include:

  1. Generation of good code for common special cases, such as i = 0. These occur frequently enough to provide a good savings, and testing for them is easy.

  2. Generation of good code for subscript expressions.

  3. Assigning variables to registers.

  4. Reduction in strength: x * 8 x << 3