edited by
869 views
2 votes
2 votes

1 .Which of these is not a part of Synthesis phase .Please states the reason also Along with your answer.
(A)   Obtain machine code corresponding to the mnemonic from the Mnemonics table
(B)   Obtain address of a memory operand from the symbol table
(C)    Perform LC processing
(D)  Synthesize a machine instruction or the machine form of a constant

2 . What is Mnemonics Table and LC processing and what is the use of both of them ?

edited by

1 Answer

Best answer
2 votes
2 votes

Mnemonics Table  is works during synthesis phases of a compiler. It mainly process ADD , SUB  instruction like MUX

LC processing is location counter that holds first address of a instruction

There are two phases ,how the assembler works

(i) Analysis phase and (ii) Synthesis phase

In analysis phase we create symbol table and mnemonic table

In synthesis phase we process the instruction by those tables

So, (A) and (B) both in synthesis phase

(C) It is in analysis phase

(D) Synthesis machine instruction is also in synthesis phase

For more see here

selected by

Related questions

0 votes
0 votes
0 answers
1
0 votes
0 votes
0 answers
2
0 votes
0 votes
1 answer
3
Ebrahim asked Jan 12
212 views
Q1. For the following grammar N - AB | BA A - a | CAC B - b | CBC C - a | b Find the FIRST and FOLLOW
0 votes
0 votes
1 answer
4
Ebrahim asked Dec 18, 2023
298 views
Like Example Above please answer this questionQ5. Implement a+b*(c+d)-e/finto: a). Quadruples.b). Triples.c). Indirect triples.