macro
macro Short for macroinstruction. An instruction in a programming language (almost always but not necessarily assembly language) that is replaced by a sequence of instructions prior to assembly or compiling. A macroassembler permits the user to define macros, specifying the macroinstruction form, its arguments, and a replacement text (otherwise called the body of the macro), and then allows macroinstructions to be interspersed among the assembly code. On encountering a macro the assembler replaces it by the macro body, substituting the parameters provided in the places marked in the macro body. The macro thus provides a mechanism for inserting a particular body of text at various places in a program (and is thus the same thing as an open subroutine, though this nomenclature is obsolete).
A macroprocessor provides similar facilities, though not in combination with an assembler. It accepts macro definitions and then reads arbitrary text in which macro calls (i.e. instances of a macro name) can occur. Text is copied to the output until a macro name is encountered: when this happens the arguments (parameters) are found and the macro call is replaced by the macro body in the output stream, with appropriate substitution of the parameters.
A macroprocessor provides similar facilities, though not in combination with an assembler. It accepts macro definitions and then reads arbitrary text in which macro calls (i.e. instances of a macro name) can occur. Text is copied to the output until a macro name is encountered: when this happens the arguments (parameters) are found and the macro call is replaced by the macro body in the output stream, with appropriate substitution of the parameters.
macro
mac·ro / ˈmakrō/ • n. (pl. -ros) 1. (also macro instruction) Comput. a single instruction that expands automatically into a set of instructions to perform a particular task.2. Photog. short for macro lens.• adj. 1. large-scale; overall: the analysis of social events at the macro level. Often contrasted with micro.2. Photog. relating to or used in macrophotography.
More From encyclopedia.com
subroutine , subroutine A piece of code that is obeyed “out of line”, i.e. control is transferred to the subroutine, and on its completion control reverts to the… assemble , assemble •babble, bedabble, dabble, drabble, gabble, grabble, rabble, scrabble •amble, bramble, Campbell, gamble, gambol, ramble, scramble, shamble •… Colonial Assemblies , ASSEMBLIES, COLONIAL, were the standard for representative government. Initially, elected representatives met in joint sessions with the governor and… Unlawful Assembly , A meeting of three or more individuals to commit a crime or carry out a lawful or unlawful purpose in a manner likely to imperil the peace and tranqu… CISC Acronym for complex instruction set computer. , CISC Acronym for complex instruction set computer. A conventional computer in which the instruction set has evolved to satisfy the needs of high-leve… Cache Memory , Cache memory refers to a fast storage buffer in the central processing unit (CPU) of a computer, allowing the computer to store data temporarily, mak…
You Might Also Like
NEARBY TERMS
macro