Question: 2 . In class, the concept was discussed that the return address must be saved or preserved when a subroutine is called ( subroutines execute

2. In class, the concept was discussed that the return address must be saved or preserved when a subroutine is called (subroutines execute code for a function, procedure, or method, for example). Two different ways of preserving/saving this return address were discussed in class and the class slides (see slide set A-3).
a. First, name the two different ways of saving a return address (describe each briefly; a phrase or short sentence for each is sufficient):
i. ANSWER:
ii. ANSWER:
b. Next, explain the significant disadvantage of one of the ways which was described in class; also explain the kind of situation where this disadvantage occurs.
ANSWER:
c. Finally, how does the other way of saving the return address overcome the disadvantage described above?
ANSWER:

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 Programming Questions!