Use app×
QUIZARD
QUIZARD
JEE MAIN 2026 Crash Course
NEET 2026 Crash Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
158 views
in General by (114k points)
closed by
A simple two-pass assembler does which of the following in the first pass? 
1. Checks to see if the instructions are legal in the current assembly mode
2. It allocates space for the literals
3. It builds the symbol table for the symbols and their values
4. All of these

1 Answer

0 votes
by (115k points)
selected by
 
Best answer
Correct Answer - Option 4 : All of these

The correct answer is option 4

In a simple two-pass assembler,

Tasks performed in 1st pass are as follows

  1. Checks to see if the instructions are legal in the current assembly mode
  2. Assign the address to all statements (address resolution)
  3. Save the values
  4. Processing of assembler directives
  5. Table creation (symbol table), Adding literals to the literal table
  6. Allocate space for the literals
  7. Compute the total length of a program

Tasks performed in 2nd pass 

  1. Generate object-oriented code.
  2. Writing/printing assembly listing.
  3. Generate code for all load and store instruction 

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...