Computer Science, asked by nasri8056, 1 year ago

Briefly explain the two basic approaches used to minimize register-memory operations on risc machines.

Answers

Answered by Anonymous
6
➡ Hardware delay of execution of the instructions following LOAD if the instruction needs the loaded value.

➡ Compiler based solution with delayed load, in which case the compiler makes sure the instructions, does not require the value that was loaded - if no instruction is available, then a NOP instruction is executed.
Answered by poona2339
2

Answer:

The two basic approaches are used to minimize register-memory operations on RISC machines is one based on software and the other on hardware.

Explanation:

Two basic approaches to minimizing register-memory operations are possible, one based on software and the other on hardware.

The software approach is to rely on the compiler to maximize register usage. The compiler will attempt to allocate registers to those variables that will be used the most in a given time period. This approach requires the use of sophisticated program-analysis algorithms.

The hardware approach is simply to use more registers so that more variables can be held in registers for longer periods of time.

SPJ2

Similar questions