The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
+6 votes

Mention the pass number for each of the following activities that occur in a two pass assembler:

  1. object code generation
  2. literals added to literal table
  3. listing printed
  4. address resolution of local symbols


asked in Compiler Design by Veteran (67.5k points)
reopened by | 586 views

1 Answer

+10 votes
Best answer
a) 2

b) 1

c) 2

d) 1

P.S. : In first pass, symbol table is created and In second pass, machine code is generated. Listing of final machine code is done after 2nd pass only.
answered by Loyal (2.9k points)
selected by
Reference ?
Akash, did you find any reference?
You can see System Programming book. Or assembler implementation lab exercise..

ans should be 2, 1, 2, 1 acrdng to description given in this ques

Arjun sir plz check these ques

You are correct. Edited.

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

28,946 questions
36,792 answers
34,689 users