search
Log In

Recent questions tagged assembler

0 votes
2 answers
1
In a single pass assembler, most of the forward references can be avoided by putting the restriction on the number of strings/lifereacts. that the data segment must be defined after the code segment. on unconditional rump. that the data segment be defined before the code segment.
asked Mar 31 in Compiler Design Lakshman Patel RJIT 225 views
2 votes
4 answers
2
In a two-pass assembler, resolution of subroutine calls and inclusion of labels in the symbol table is done during second pass first pass and second pass respectively second pass and first pass respectively first pass
asked Jan 13 in Compiler Design Satbir 547 views
0 votes
1 answer
3
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
asked Dec 7, 2017 in Compiler Design rishu_darkshadow 224 views
7 votes
2 answers
4
A simple two-pass assembler does which of the following in the first pass: Checks to see if the instructions are legal in the current assembly mode It allocates space for the literals. It builds the symbol table for the symbols and their values. All of these
asked Jul 6, 2016 in Compiler Design Arjun 2.7k views
27 votes
2 answers
5
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$
asked Oct 9, 2014 in Compiler Design Kathleen 5.1k views
15 votes
2 answers
6
State whether the following statements are True or False with reasons for your answer A subroutine cannot always be used to replace a macro in an assembly language program. A symbol declared as ‘external’ in an assembly language program is assigned an address outside the program by the assembler itself.
asked Oct 6, 2014 in Compiler Design Kathleen 988 views
9 votes
4 answers
7
State whether the following statements are True or False with reasons for your answer: Coroutine is just another name for a subroutine. A two pass assembler uses its machine opcode table in the first pass of assembly.
asked Oct 6, 2014 in Compiler Design Kathleen 1k views
19 votes
3 answers
8
A simple two-pass assembler does the following in the first pass: It allocates space for the literals. It computes the total length of the program. It builds the symbol table for the symbols and their values. It generates code for all the load and store register instructions. None of the above.
asked Sep 30, 2014 in Compiler Design Kathleen 6.6k views
13 votes
1 answer
9
Mention the pass number for each of the following activities that occur in a two pass assembler: object code generation literals added to literal table listing printed address resolution of local symbols
asked Sep 13, 2014 in Compiler Design Kathleen 1.9k views
4 votes
1 answer
10
Write short answers to the following: (i). Which of the following macros can put a macro assembler into an infinite loop? .MACRO MI,X .IF EQ,X M1 X+1 .ENDC .IF NE,X .WORD X .ENDC .ENDM .MACRO M2,X .IF EQ,X M2 X .ENDC .IF NE,X .WORD X+1 .ENDC .ENDM Give an example call that does so.
asked Sep 13, 2014 in Compiler Design Kathleen 548 views
12 votes
3 answers
11
The purpose of instruction location counter in an assembler is _______
asked Sep 13, 2014 in Compiler Design Kathleen 1.3k views
To see more, click for the full list of questions or popular tags.
...