43 43 votes The pass numbers for each of the following activities object code generation literals added to literal table listing printed address resolution of local symbols that occur in a two pass assembler respectively are $1, 2, 1, 2$ $2, 1, 2, 1$ $2, 1, 1, 2$ $1, 2, 2, 2$ Related Questions :GATE CSE 1992 | Question: 03,ii Compiler Design gate1996 compiler-design normal assembler + – Kathleen 18.4k views answer comment Share Follow Print See all 6 Comments 6 6 Comments reply Show 3 previous comments harypotter0 commented Jun 11, 2020 reply Follow flag address resolution of local symbols in compiler is done where? 0 0 replyShare Massive commented Nov 16, 2024 reply Follow flag address resolution of local symbol means it is basically location counter which stores the address of the current instructions in pass1 and along with these symbol table and opcode table values are used in pass2 when the machine code will be generated. 0 0 replyShare Raj_Dev_Verma commented 5 days ago reply Follow flag option B is correct 0 0 replyShare Please log in or register to add a comment.
Best answer 48 48 votes Correct Option: B The functions performed in pass $1$ and pass $2$ in $2$ pass assembler are Pass $1$ Assign addresses to all statements in the program. Save the values assigned to all labels for use in pass $2$ Perform some processing of assembler directives. Pass $2$ Assemble instructions. Generate data values defined by BYTE, WORD etc. Perform processing of assembler directives not done during pass $1$. Write the program and the assembling listing minal answered Jul 14, 2015 • edited May 13, 2021 by soujanyareddy13 minal comment Share Follow See all 5 Comments 5 5 Comments reply Show 2 previous comments Abhisek Tiwari 4 commented Jan 4, 2019 reply Follow flag @srestha mam what is listing printed???Schemantic actions?? 1 1 replyShare srestha commented Jan 4, 2019 reply Follow flag 2 pass assembler property See ans line Write the program and the assembling listing 1 1 replyShare Massive commented Nov 16, 2024 reply Follow flag @Barney Ross see in option 4,address resolution of local symbol means it is basically location counter which stores the address of the current instructions in pass1 and along with these symbol table and opcode table values are used in pass2 when the machine code will be generated. 0 0 replyShare Please log in or register to add a comment.
8 8 votes i think ans should be B. literals added to literal table is done in lexical analysis phase, so possible in 1 pass. and a is back end activity so can not in 1 pass. d is back end activity but it is in 2 pass assembler. so only 1 pass required. hence B jayendra answered Jan 7, 2015 • edited Jan 7, 2015 by jayendra jayendra comment Share Follow See all 2 Comments 2 2 Comments reply Mudrakola Karthik 3 commented Dec 29, 2017 reply Follow flag address resolution is done by the loader.it not done by assembler plz explain why option d is done in 1st pass of assembler 3 3 replyShare Aspirant commented Jan 6, 2018 reply Follow flag What is back end activity ? plz explain. 0 0 replyShare Please log in or register to add a comment.