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 (plot_function with parameter aO) 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 plot_function uses aO as a parameter, and its own caller passes a value in a0. mv s1, s2 is the pseudo instruction equivalent of: addi s1,s2,0What combinations should apply (mark as all that are true):reg_set1 should include ra, s1, s2, s3reg_set2 is emptyreg_set 2 is: should include t1a0 doesn't need to be saved on the stackreg_set 1 is emptyonly t1 and ra need to be savedonly ra rieeds to be savedall s# registers should be savedall t# should be savedra does not need savingt1 needs to be saved.
 A nested function calls another function (plot_function with parameter aO) and

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!