Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning C# 5.0 Databases

Authors: Vidya Vrat Agarwal

2nd Edition

1430242604, 978-1430242604

More Books

Students also viewed these Databases questions

Question

Apply your own composing style to personalize your messages.

Answered: 1 week ago

Question

Format memos and e-mail properly.

Answered: 1 week ago