1.

A simple two-pass assembler does which of the following in the first pass?(a) It allocates space for the literals(b) Calculates total length of the program(c) Symbol table is built for the symbols and their value(d) All of the mentionedThe question was asked in an interview for internship.This key question is from Data Structure for Representing Parsing Table topic in portion Bottom Up Parsing of Compiler

Answer»

The CORRECT option is (d) All of the mentioned

To elaborate: A two-pass assembler. Each pass scans the PROGRAM, the first pass generates the SYMBOL table and the SECOND pass generates the machine CODE.



Discussion

No Comment Found

Related InterviewSolutions