Question: Suppose you want to make a nested function call (i.e. a call to a function from inside of another function) using a jal rather than

Suppose you want to make a nested function call (i.e. a call to a function from inside of another function) using a jal rather than a call for performance reasons. How would the push and pop pseudo-ops be proprely ordered along with the jal so that the previous return address isn't lost?

pop $ra jal nested_function_label nop push $ra

push $ra jal nested_function_label nop pop $ra

push $ra pop $ra jal nested_function_label nop

jal nested_function_label nop pop $ra push $ra

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!