Keil™, An ARM® Company

C166 User's Guide

80C166-Specific Optimizations

  • Access Optimizing (Level 2)
    Variables accesses are directly included in operations. Intermediate registers are frequently unnecessary.
  • Case/Switch Optimizing (Level 4)
    Code involving switch and case statements is optimized using jump tables or jump strings.
  • Peephole Optimizing (Level 6)
    Redundant MOV instructions are removed. This includes unnecessary loading of objects from the memory as well as load operations with constants. Complex operations are replaced by simple operations when memory space or execution time can be saved.