In a two-pass assembler, resolution of subroutine calls and inclusion of labels in the symbol table is done during
Related:
https://www.geeksforgeeks.org/ugc-net-ugc-net-cs-2014-dec-ii-question-33/
Answer is option d i.e. first pass.
https://gateoverflow.in/2721/gate1996-1-17
https://en.m.wikipedia.org/wiki/Assembly_language
@SuvasishDutta It is saying resolution of subroutine calls not address resolution of statements(which is done at pass 1).
In the above link, the question is related to this context only.
Also i am posting another article related to this.
See the number of passes section in the above link.
In a two-pass assembler, pass 2 only generates. Nothing else.
Precisely, the function of pass 2 is to generate the object code, to generate the data for literals, to print listings etc.
Rest is done by pass 1. Hence, Option D
Option C :
The resolution of sub routine is done in second pass and the inclusion of labels in symbol table is done in first pass.
So, option C is the Correct answer. Second pass and first pass respectively.
64.3k questions
77.9k answers
243k comments
79.7k users