How subprogram with stact and dynamic local variables are implemented?
Answers
Answered by
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
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
Math,
6 months ago
Computer Science,
6 months ago
Math,
6 months ago
Environmental Sciences,
11 months ago
English,
1 year ago
Math,
1 year ago
Math,
1 year ago