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? Compiler Design compiler-design runtime-environment made-easy-test-series + – rahul sharma 5 asked Jan 24, 2018 • edited Mar 4, 2019 by ajaysoni1924 rahul sharma 5 1.8k views answer comment Share Follow See all 6 Comments See all 6 6 Comments reply Show 3 previous comments rahul sharma 5 commented Jan 25, 2018 reply Follow Share I misunderstood you first comment as that you are suggesting a as the answer.:( If A calls B, now according to given in question A control link points to B but shoudn't it be B control link point to A See https://www.cs.nmsu.edu/~rth/cs/cs471/f00/ARIs.html "The dynamic link points to the top of the ARI of the caller." So B control link point to A.Why is this not correct? 0 votes 0 votes Anu007 commented Jan 25, 2018 reply Follow Share According to question it simple says control link point to calling procedure like if A calls B then Control link from B points to A since A is calling procedure. B is called procudre so Control link to calling procedure or from called procedure. Always calling procedure is pointing 3 votes 3 votes rahul sharma 5 commented Jan 25, 2018 reply Follow Share thanks got that now. 1 votes 1 votes Please log in or register to add a comment.
0 votes 0 votes Control link is a dynamic link + Control link pointing to the caller Hence Answer=B raju paul answered Aug 17, 2019 raju paul comment Share Follow See all 0 reply Please log in or register to add a comment.
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. Ram Swaroop answered Aug 18, 2019 Ram Swaroop comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes A 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 smsubham answered Dec 25, 2019 smsubham comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes 1- option A and C 2- option B and D rish1602 answered Apr 7, 2021 rish1602 comment Share Follow See all 0 reply Please log in or register to add a comment.