Question: Question 3 (82=16 points ) Answer the following with True or False with a short justification. 1. Maintenance of the subroutine call stack is the

Question 3 (82=16 points ) Answer the following with True or False with a short justification. 1. Maintenance of the subroutine call stack is the responsibility of the caller. 2. Modern machines typically pass subroutine parameters in stacks 3. Subroutine calling convention gives the caller the responsibility to save all the registers. 4. Parameter-passing in C is call-by-value as well as call-by-reference (when using pointers) 5. For calling sequence convention compiler uses callee-saves registers for local variables and callersaves registers for address. 6. It is the caller's responsibility to maintain static chain during a subroutine call. 7. Pascal is call by value but can do call by reference with the help of the keyword 'var' 8. For C++ function header "void f1(int p1, float\& p2);" p1, is passed by reference and p2 is passed by value
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
