5 votes 5 votes In a two-pass assembler, resolution of subroutine calls and inclusion of labels in the symbol table is done during second pass first pass and second pass respectively second pass and first pass respectively first pass Compiler Design isro-2020 compiler-design assembler easy + – Satbir asked Jan 13, 2020 • edited Apr 10, 2020 by go_editor Satbir 3.8k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
4 votes 4 votes $\underline{\textbf{Answer:}\Rightarrow}\;\mathbf{d.}$ The generation of symbol table in a two-pass assembler happens in the first pass but it requires two pass to scan the entire source file. `JEET answered Jan 13, 2020 • edited Jan 15, 2020 by `JEET `JEET comment Share Follow See all 4 Comments See all 4 4 Comments reply `JEET commented Jan 13, 2020 reply Follow Share Related: https://www.geeksforgeeks.org/ugc-net-ugc-net-cs-2014-dec-ii-question-33/ 0 votes 0 votes SuvasishDutta commented Jan 14, 2020 reply Follow Share Answer is option d i.e. first pass. https://gateoverflow.in/2721/gate1996-1-17 https://en.m.wikipedia.org/wiki/Assembly_language 0 votes 0 votes Swaraj Dasgupta commented Jan 14, 2020 reply Follow Share but is is said resolution of subroutine calls ... 0 votes 0 votes shaktisingh commented Jan 14, 2020 reply Follow Share @SuvasishDutta It is saying resolution of subroutine calls not address resolution of statements(which is done at pass 1). 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes Answer is option d i.e. first pass. https://gateoverflow.in/2721/gate1996-1-17 In the above link, the question is related to this context only. Also i am posting another article related to this. https://en.m.wikipedia.org/wiki/Assembly_language See the number of passes section in the above link. SuvasishDutta answered Jan 14, 2020 SuvasishDutta comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes 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 JashanArora answered Feb 21, 2020 JashanArora comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes 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. tarun304 answered Jun 27, 2020 tarun304 comment Share Follow See all 0 reply Please log in or register to add a comment.