search
Log In
0 votes
233 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 233 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

Related questions

1 vote
1 answer
1
84 views
The two methods how LRU page replacement policy can be implemented in hardware are : 1) Counters 2) RAM & Registers 3) Stack & Counters 4) Registers
asked Dec 7, 2017 in Operating System rishu_darkshadow 84 views
0 votes
1 answer
2
101 views
The primary job of the operating system of a computer is to 1) command resources 2) manage resources 3) provide utilities 4) provide connection
asked Dec 7, 2017 in Operating System rishu_darkshadow 101 views
0 votes
0 answers
3
74 views
The _______ has the responsibility to start up the processing of operating system. 1) ROM BIOS 2) Bootstrap program 3) Boost sector 4) All options are correct
asked Dec 7, 2017 in Operating System rishu_darkshadow 74 views
0 votes
0 answers
4
67 views
The program in the operating system that dose processor management is called _________. 1) traffic controller 2) dispatcher 3) processor scheduler 4) job scheduler
asked Dec 7, 2017 in Operating System rishu_darkshadow 67 views
...