COMPILER DESIGN

SYNTAX ANALYSIS

ROLE OF THE PARSER

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
A self-relocating program is one which ____
A
cannot be made to execute in any area of storage other than the one designated for it at the time of its coding or translation
B
consists of a program and relevant information for its relocation
C
can itself perform the relocation of its address sensitive portions
D
All the above
Explanation: 

Detailed explanation-1: -Relocation : When a program is run it does not know in advance what location it will be loaded at. Therefore, the program cannot simply generate static addresses (e.g. from jump instructions). Instead, they must be made relative to where the program has been loaded.

Detailed explanation-2: -A non relocatable program is the one which? Explanation: A non reloadable program is one which cannot be made to execute in any area of storage other than the one designated for it at the time of its coding or translation.

There is 1 question to complete.