COMPUTER SCIENCE AND ENGINEERING
COMPILER DESIGN
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
Which of the following is NOT possible to realize if activation record is static
|
Passing parameters
|
|
Creating local variables
|
|
Supporting recursion
|
|
None of the other options
|
Explanation:
Detailed explanation-1: -Therefore, Direct Link is not present in activation record of procedure.
Detailed explanation-2: -Therefore, a Direct Link is not present in the activation record of a procedure.
Detailed explanation-3: -An instance of a function contains. – memory for each parameter (input) – memory for each local variable. – memory for the return value. This chunk of memory is referred to as an activation record.
Detailed explanation-4: -An activation record contains all the necessary information required to call a procedure. An activation record may contain the following units (depending upon the source language used). Stores temporary and intermediate values of an expression. Stores local data of the called procedure.
There is 1 question to complete.