Explain the use of stack for parameter passing in a subroutine/function call.
Answers
Answered by
0
Answer:
Explain the use of stack for parameter passing in a subroutine/function call.
Answered by
0
Calling program pushes parameters on the stack one element at a time before calling subroutine. Subroutine Call (jsr, bsr) then pushes the return address on stack. bytes the parameters occupy, in order to clean up the stack and bring the Stack Pointer (SP) to its original position.
Similar questions
Biology,
26 days ago
Social Sciences,
26 days ago
Science,
1 month ago
Chemistry,
9 months ago
Math,
9 months ago