COMPILER DESIGN

SYNTAX ANALYSIS

ROLE OF THE PARSER

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which of the following is NOT possible to realize if activation record is static
A
Passing parameters
B
Creating local variables
C
Supporting recursion
D
None of the other options
Explanation: 

Detailed explanation-1: -The Fortran List Processing Language already existed; however, it did not support recursion, conditional expressions, dynamic storage allocation or implicit deallocation.

Detailed explanation-2: -Heap Storage Allocation Heap allocation is used to allocate memory to the variables dynamically and when the variables are no more used then claim it back. Heap storage allocation supports the recursion process.

Detailed explanation-3: -Heap area generally not represented in a subroutine’s activation record frame because it can be globally accessible in the program.

There is 1 question to complete.