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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!