Computer Science, asked by vinayraj7308, 11 months ago

How subprogram with stact and dynamic local variables are implemented?

Answers

Answered by Anonymous
0

Explanation:

If the subprogram is a function, ensure its value is moved to a place accessible to the caller. Restore the stack pointer by setting it to the value of the current EP-1 -- a quick way to essentially deallocate the AR. Set the EP to the old dynamic link. Restore the execution status of the caller.

Answered by Anonymous
0

Answer:

If the subprogram is a function, ensure its value is moved to a place accessible to the caller. Restore the stack pointer by setting it to the value of the current EP-1 -- a quick way to essentially deallocate the AR. Set the EP to the old dynamic link. Restore the execution status of the caller.

Similar questions