Question: This is a question on programming language design: Draw the snapshot of stack with all activation record instances, including static and dynamic chains, when execution
This is a question on programming language design:

Draw the snapshot of stack with all activation record instances, including static and dynamic chains, when execution reaches to position A in the following pogrom. Assume Bigsub is at level 1. Please use the notations, such as esp (Bigsub), ebp (Bigsub), to denote the values of ESP and EBP of Bigsub. Similarly for funl, fun2 fun3 and fun3. void Bigsub () { int a; funl(true); }//End of Bigsub void funl(boolean flag){ double b; if (flag){ fun2 ();} else { fun3(); } }//End of funl void fun2 (void){ funl(false); }//End of fun2 void fun3(void){ fun4 (); }//End of fun3 void fun4 (void){ char c[10];
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
