Macro (computer science)
Preprocessing rule in computer languages that specifies how an input text usually identified by a definable keyword or sequence is mapped to a frequently larger output text
In computer programming, a macro (short for "macro instruction"; from Greek μακρο- 'long, large') is a rule or pattern that specifies how a certain input should be mapped to a replacement output. Applying a macro to an input is known as macro expansion.
Nº Q629579 ★★
Uncommon · History
Macro (computer science)
Preprocessing rule in computer languages that specifies how an input text usually identified by a definable keyword or sequence is mapped to a frequently larger output text
In computer programming, a macro (short for "macro instruction"; from Greek μακρο- 'long, large') is a rule or pattern that specifies how a certain input should be mapped to a replacement output. Applying a macro to an input is known as macro expansion.
From Wikipedia
In computer programming, a macro (short for "macro instruction"; from Greek μακρο- 'long, large') is a rule or pattern that specifies how a certain input should be mapped to a replacement output. Applying a macro to an input is known as macro expansion. The input and output may be a sequence of lexical tokens or characters, or a syntax tree. Character macros are supported in software applications to make it easy to invoke common command sequences. Token and tree macros are supported in some programming languages to enable code reuse or to extend the language, sometimes for domain-specific languages. Macros are used to make a sequence of computing instructions available to the programmer as a single program statement, making the programming task less tedious and less error-prone. Thus, they are called "macros" because a "big" block of code can be expanded from a "small" sequence of characters. Macros often allow positional or keyword parameters that dictate what the conditional assembler program generates and have been used to create entire programs or program suites according to such variables as operating system, platform or other factors. The term derives from "macro instruction", and such expansions were originally used in generating assembly language code.
Text: Wikipédia, CC BY-SA 4.0. · Image: Ardo Beltz (CC BY-SA 4.0) ·
Related cards
-
Computer
General-purpose device for performing arithmetic or logical operations
Nº Q68 ★★★★★
Not listed
-
M
Make (software)
Standard UNIX utility and programming language for build automation
Nº Q300867 ★★
Not listed
-
L
Load–store architecture
Type of instruction set architecture
Nº Q6663274 ★
Not listed
-
A
Assert.h
Header file in the standard library of the C programming language
Nº Q306248 ★
Not listed
-
L
List (abstract data type)
Abstract data type used in computer science
Nº Q27948 ★
Not listed
-
s
stdint.h
C standard library header
Nº Q4050080 ★
Not listed