The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+12 votes
786 views

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 (59.4k points)
reopened by | 786 views
+1

Exactly same question  - https://gateoverflow.in/2721/gate1996_1-17

Each pass scans the program, the first pass generates the symbol table and the second pass generates the machine code.

http://users.cis.fiu.edu/~downeyt/cop3402/two-pass.htm

1 Answer

+13 votes
Best answer
  1. $2$
  2. $1$
  3. $2$
  4. $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 Active (3k points)
edited by
0
Reference ?
0
Akash, did you find any reference?
–1
You can see System Programming book. Or assembler implementation lab exercise..
+1
+2

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

https://gateoverflow.in/2721/gate1996_1-17

Arjun sir plz check these ques

0
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

34,780 questions
41,754 answers
118,921 comments
41,399 users