[amp_mcq option1=”many functions do not have to be implemented twice.” option2=”Functions are combined and it is not necessary to create intermediate files as output from the macros processor and input to the assembler.” option3=”more flexibility is available to the programmer in that he may use all the features of the assembler in conjunction with macros.” option4=”all of the above E. None of the above” correct=”option4″]
The correct answer is D. all of the above.
A macro processor is a program that takes a macro definition as input and expands it into a sequence of instructions that can be executed by the assembler. This can save time and effort, as the programmer does not have to write the same code multiple times. Additionally, macros can be used to create functions that can be called multiple times, which can also save time and effort. Finally, macros can be used to add flexibility to the assembler, as the programmer can use them to create new instructions that are not available in the standard assembler.
Option A is correct because macros can be used to define functions that can be called multiple times. This means that the programmer does not have to write the same code multiple times, which can save time and effort.
Option B is correct because macros can be used to combine multiple instructions into a single macro. This means that it is not necessary to create intermediate files as output from the macros processor and input to the assembler.
Option C is correct because macros can be used to add flexibility to the assembler, as the programmer can use them to create new instructions that are not available in the standard assembler.
Option E is incorrect because all of the above are advantages of incorporating the macro processor into pass 1.