Difficulty: Easy
Correct Answer: macro
Explanation:
Introduction / Context:
Macro facilities allow programmers to define templates that expand into multiple instructions or declarations, improving readability and reducing repetition. Macro processing happens before actual assembly or compilation.
Given Data / Assumptions:
Concept / Approach:
A macro is a named pattern with parameters that the preprocessor or assembler expands inline. Unlike procedures (which are called at runtime), macros generate code at compile time, in place, avoiding call overhead but increasing code size.
Step-by-Step Solution:
Verification / Alternative check:
Assembler directives like MACRO/ENDM and C/C++ preprocessor macros (#define) exemplify compile-time expansion into instruction sequences.
Why Other Options Are Wrong:
Common Pitfalls:
Confusing macros with inline functions; both eliminate call overhead, but macros are textual expansions and lack type checking in many languages.
Final Answer:
macro
Discussion & Comments