Explore BrainMass
Share

Activation Record Instances

This content was STOLEN from BrainMass.com - View the original, and get the already-completed solution here!

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

© BrainMass Inc. brainmass.com October 24, 2018, 8:46 pm ad1c9bdddf
https://brainmass.com/computer-science/program-execution/106920

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 ...

Solution Summary

Activation Record Instances are discussed.

$2.19
See Also This Related BrainMass Solution

Role of the brain in activity

Imagine you take a bite out of your favorite food: PIZZA: Briefly discuss the role that each part of the brain plays in theis "simple" act.

Need explaination or a detailed description of hwta role the brain and its part take in this activity.

View Full Posting Details