1. How the macro is processed using two passes?
Pass 1: processing of definitions
Pass 2:actual-macro expansion.
2. Give the advantage of line by line processors.
It avoids the extra pass over the source program during assembling.
It may use some of the utility that can be used by language translators so that can be loaded once.
3. What is meant by line by line processor?
This macro processor reads the source program statements, process the statements and then the output lines are passed to the language translators as they are generated, instead of being written in an expanded file.
4. Give the advantages of general-purpose macro processors.
The programmer does not need to learn about a macro facility for each compiler.
Overall saving in software development cost and maintenance cost.
5. What is meant by general-purpose macro processors?
The macro processors that are not dependent on any particular programming language, but can be used with a variety of different languages are known as general purpose macro processors. Eg. The ELENA macro processor.