Compiler Phases, Linking & Loading


Answer & solution
Answer: True. (no official key was published)
1. A macro performs assembly-time text expansion. Its parameters may select register names, opcodes, labels, data declarations or conditional assembly. Such choices can alter the generated instruction sequence itself.
2. A subroutine is runtime code reached by a call; it has call/return and argument conventions rather than general assembly-time substitution. A macro that declares a label or storage at each expansion point cannot be replaced simply by calling one fixed subroutine.
3. Some computational macros can be rewritten as subroutines, but that limited case does not justify the universal replacement claim.