Difference between macro processor and macro assembler
Answers
Answered by
3
A macro processor is a program that copies a stream of text from one place to another, making a systematic set of replacements as it does so. Macro processors are often embedded in other programs, such as assemblers and compilers. Sometimes they are standalone programs that can be used to process any kind of text.The macro is a "skeleton" a "pattern" from which you generate program parts. Procedure is a program part, what you can "call".
The procedure is a sequence of instructions. It has a name, an entry point and one or more return point. It is called from an other part of the program. It can have parameters. The sequence of parameters in the call instruction and in called procedure important. The called procedure can use local variables.
The macro also contains a sequence of instructions. But only a passive pattern. Any time it can be used. It can be used with different parameters, each time the result code (generated) will be in the program as ordinary instructions. (increasing the program size) The macro has name, and parameters.
The procedure is a sequence of instructions. It has a name, an entry point and one or more return point. It is called from an other part of the program. It can have parameters. The sequence of parameters in the call instruction and in called procedure important. The called procedure can use local variables.
The macro also contains a sequence of instructions. But only a passive pattern. Any time it can be used. It can be used with different parameters, each time the result code (generated) will be in the program as ordinary instructions. (increasing the program size) The macro has name, and parameters.
Answered by
1
Difference Between Macro Processor and Macro Assembler:
Attachments:
Similar questions
Social Sciences,
8 months ago
Math,
8 months ago
Physics,
8 months ago
Math,
1 year ago
Biology,
1 year ago