edited by
1,832 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

3.2k
views
4 answers
2 votes
rahul sharma 5 asked Jan 24, 2018
3,163 views
Consider the following statements:S1 : Static allocation can not support recursive function.S2 : Stack allocation can support pointers but can not deallocate storage at run-time.S3 : ... ?a S1 and S2b S2 and S3c S3 and S1d S1, S2 and S3
1.8k
views
2 answers
1 votes
Prince Sindhiya asked Dec 27, 2018
1,763 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
950
views
1 answers
1 votes
Na462 asked Oct 8, 2018
950 views
Which of the Following is True ?A. Symbol table Construction is during the analysis part of the Compiler.B. Type checking is Done during Syntax Analysis phaseC. ... evaluationD. Both A and CPlease Explain the C part only rest are easy :)
268
views
0 answers
0 votes
makhdoom ghaya asked Aug 18, 2022
268 views
Please list out the best free available video playlist for Runtime Environments from Compiler design as an answer here (only one playlist per answer). We'll then ... be selected as best.For the full list of selected videos please see here