The Gateway to Computer Science Excellence
0 votes
85 views

Which of the following is not a function of pass1 of an assembler?

1) Generate data 
2) Keep track of LC 
3) Remember literals 
4) Remember values of symbols until pass 2 

in Compiler Design by Loyal (7.3k points) | 85 views

1 Answer

0 votes

1 - "Generate data" is function of 2nd Pass.

Pass 2 (assemble instructions and generate object program) : 

1. Assemble instructions (generate opcode and look up addresses)

2. Generate data values defined by BYTE, WORD 

3. Perform processing of assembler directives not done during Pass 1

4. Write the object program and the assembly listing

http://solomon.ipv6.club.tw/Course/SP.941/sp2-1.pdf

by Boss (27.4k points)
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
50,737 questions
57,291 answers
198,212 comments
104,903 users