Constants
Small constants are used quite frequently (50% of operands) e.g., A = A + 5; B = B + 1; C = C - 18;
Solutions? Why not?
- put 'typical constants' in memory and load them.
- create hard-wired registers (like $zero) for constants like one.
MIPS Instructions: addi $29, $29, 4 slti $8, $18, 10 andi $29, $29, 6 ori $29, $29, 4
How do we make this work?