wiz-icon
MyQuestionIcon
MyQuestionIcon
5
You visited us 5 times! Enjoying our articles? Unlock Full Access!
Question

The pass numbers for each of the following activities
(i) object code generation
(ii) literals added to literal table
(iii) listing printed
(iv) address resolution of local symbols that occur in a two pass assembler respectively are

A
2, 1, 2, 1
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B
2, 1, 1, 2
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
1, 2, 1, 2
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
1, 2, 2, 3
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is A 2, 1, 2, 1
A multi-pass compiler is a type of compiler that processes the source code or abstract syntax tree of a program several times. Two-pass compiler, on the first pass checks the syntax of statements and constructs a table of symbols, while on the second pass it actually translates program statements into machine language.
(i) Object code generation - 2
(ii) Literals added to literal table - 1
(iii) Listing printed - 2
(iv) Address resolution of local symbols that occur in a two pass assembler respectively - 1

flag
Suggest Corrections
thumbs-up
1
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Database Structuring
ACCOUNTANCY
Watch in App
Join BYJU'S Learning Program
CrossIcon