Question: P2) Answer the following questions: (30 points) (a) Explain why global variables locate top of activation record. If you change to other locations such as
P2) Answer the following questions: (30 points) (a) Explain why global variables locate top of activation record. If you change to other locations such as the free area, what kind of problems will happen? How to avoid the problems? (b) Why stack based languages use stack to implement their activation record? If they do not use stack, what kind of problem will happen
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
