Question: A nested function calls another function ( plot _ function with parameter a O ) and is also called by another function. Given the code
A nested function calls another function plotfunction with parameter and is also called by another function. Given the code that follows RISCV calling convention, which sets of registers should be saved to make this program run more optimally. All the function knows is that the plotfunction uses as a parameter, and its own caller passes a value in a mv s s is the pseudo instruction equivalent of: addi What combinations should apply mark as all that are true:regset should include ra s s sregset is emptyregset is: should include ta doesn't need to be saved on the stackregset is emptyonly t and ra need to be savedonly ra rieeds to be savedall s# registers should be savedall t# should be savedra does not need savingt needs to be saved.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
