In two pass assembler,
Purpose: Generate object program.
1. Substitute the corresponding address for each
symbol.
2. Generate instruction, which are opcode are
subst ituted for machine instruction.
3. Data is generated.
4. Some pseudo operations are also executed.
Theory of Computation and Compilers MCQ - Syntax Analysis
Relocation of code is the process done by the
linker-loader when a program is copied from
external storage into main memory.
A grammar is said to be ambiguous if there exist
more than one parse tree for a string.
Consider the context free grammar
E → E + E
E → (E * E)
E → id
Where E is the starting symbol, the set of terminals
is {id, (, + ,), *} and the set of non terminal is {E}.
Consider the context free grammar
E → E + E
E → (E * E)
E → id
Where E is the starting symbol, the set of terminals
is {id, (, + ,), *} and the set of non terminal is {E}.


Has more than one parse tree