edited by
1,720 views
2 votes
2 votes

Match the following with respect to activation record fields:

A 1 → A, D; 2 → B, C

B 1 → A, C; 2 → B, D

C 1 → B, C; 2 → A, D

D 1 → B, D; 2 → A, C

Doubt:- Control link points to caller activation record.Can some one confirm?

edited by

4 Answers

0 votes
0 votes
Control link is a dynamic link +

Control link pointing to the caller

 

Hence Answer=B
0 votes
0 votes
Answer b: 1-A,C 2- B,D

Access link(static link) refers to non local data held on activation record.

Control link(dynamic link): point to activation record of caller.
0 votes
0 votes

control link from record A points to the previous record on the stack. The chain of control links traces the dynamic execution of the program.

An access link from record A points to the record of the closest enclosing block in the program. The chain of access links traces the static structure (think: scopes) of the program.

Source: https://www.cs.hmc.edu/~benw/teaching/notes/activation.html

1 => A, C

2 => B, D

Related questions

1 votes
1 votes
2 answers
2
Prince Sindhiya asked Dec 27, 2018
1,594 views
The two basic operations that are often performed with the symbol table are:1.Set and reset 2.Set and insert 3. Insert and lookup 4.Reset and lookup