Register and Stack Allocation
Register and Stack Allocation
- Java doesn’t have registers
- local variables are not the same:
- first 4 (R0-R3) have shorter manipulating instructions
- first 64 can fit into the register set on UltraJavaTM
- operand stack should be used to shorten the bytecode sequence
- solved in code generation for p-code