Purchase Solution

Activation Record Instances

Not what you're looking for?

Ask Custom Question

Do I have enough information to do this problem and What exactly are the static and dynamic Chains? I am not a programmer and I am trying to get this right.

Show the stack with all activation record instances, including static and dynamic chains, when executions reaches position 1 in the following skeletal program. Assume Bigsub is at level 1.

procedure Bigsub is
procedure A
procedure B is
begin -- of B
... <-- 1
end; -- of B
procedure C is
begin - of C
...
B;
...
end; -- of C
begin - of A
...
C;
...
end; -- of A
begin -- of Bigsum
...
A;
...
End; -- of Bigsum

Purchase this Solution

Solution Summary

Activation Record Instances are discussed.

Solution Preview

1. Static chain is a chain of static links that connects its activation record instance (ARI)to all of its static ancestors ARIs. Static chains connect the set of stack frames in each dynamic environment as a tree.

2. Dynamic chains is the collection of dynamic links in the stack at a given time.

In Procedure Bigsub, the ...

Purchase this Solution


Free BrainMass Quizzes
C++ Operators

This quiz tests a student's knowledge about C++ operators.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.