Q.no 41: Which is NOT part of Data Structure of macro processor?
A: MNT
B : MDP
C: LITTAB
D: EVTAB
Answers
Answered by
3
Answer:
B
Explanation:
I think the answer is b MDP
Answered by
0
Answer:
Option C - LITTAB is not part of the Data Structure of the macro processor.
Explanation:
- By entering the macro's name in the mnemonic field and its operand in the operand field, the operation described by the macro can be used.
- A macro call is made when the macro name appears in the mnemonic field.
- Such statements are replaced by the sequence of statements that make up the macro when it is called.
- This process is called macro expansion.
Design Methodology
- processing of definitions - Scan all macro definitions, and then enter the macro name for each one in the macro name table (MNT).
- A macro definition table (MDT) is used to store the whole macro definition, while MNT is used to add auxiliary data like the number of positional parameters (#PP), several keyword parameters (#KP), macro definition table position (MDTP), etc.
- Examine every statement in the assembly source code to find any macro calls. Locate the macro in MNT for each macro call, extract MDTP, confirm that the formal and practical parameters match, and then expand the macro.
The following data structures are necessary for processing macro definitions:
- Macro Name Table [MNT] - Fields-Name of Macro, MDTP (Macro Definition Table Pointer), Keyword Parameters Default Table Position (KPDTP), Sequencing Symbol Table Position, #pp (number of positional parameters), #kp (number of keyword parameters), #ev (number of expansion time variables) (SSTP).
- Expansion Time Variable Name Table [EVNTAB] -Fields - Expansion Time Variable Name Table [PNTAB] -Fields - Parameter Name
- Parameter Name, Default Value, Keyword parameter Default Table [KPDTAB]
- Model Statements from the Macro Definition Table [MDT] are kept in the intermediate code files as Label, Opcode, and Operands.
- Sequencing symbol name is a field in the Sequencing Symbol Table Name [SSNTAB] table.
- MDT entry no(#) in the Sequencing Symbol Table [SSTAB].
- Definition algorithm
Hence, LITTAB is not a part of the Data Structure of the macro processor.
#SPJ3
Similar questions
Science,
3 months ago
Computer Science,
3 months ago
Chemistry,
7 months ago
Biology,
7 months ago
Math,
11 months ago