Macro instruction

Macro instruction

A macro instruction is a line of computer program coding that results in one or more lines of program coding in the target programming language. In the mid 1950s, when assembly language programming was commonly used to write programs for digital computers, the use of macro instructions was initiated for two main purposes: to reduce the amount of program coding that had to be written by generating several assembly language statements from one macro instructions and to enforce program writing standards, e.g. specifying input/output commands in standard ways. Macro instructions were effectively a middle step between assembly language programming and the high-level programming languages that followed, such as FORTRAN and COBOL. Two of the earliest programming installations to develop "macro languages" for the IBM 705 computer were at Dow Chemical Corp. in Delaware and the Air Material Command, Ballistics Missile Logistics Office in California. A macro instruction written in the format of the target assembly language would be processed by a macro compiler, which was a pre-processor to the assembler, to generate one or more assembly language instructions to be processed next by the assembler program that will would translate the assembly language instructions into machine language instructions.

While "macro instructions" can be defined by a programmer as a shorthand for any set of native assembler program instructions, typically macro's are associated with macro libraries delivered with the operating system allowing access to operating system functions such as peripheral access by access methods (including macro's such as OPEN, CLOSE, READ and WRITE) and other operating system functions such as ATTACH, WAIT and POST for subtask creation and synchronization. Typically such macro's expand into a list of "define constant" instructions representing the parameters of the macro instruction (such as a reference to a file and a data area for a READ instruction) followed by either a "branch and link" instruction to call a routine, or a supervisor call instruction to call an operating system function directly.

In older operating systems such as used on IBM mainframes, full operating system functionality was only available to assembler language programs, not to high level language programs (unless assembly language subroutines were used, of course), as the standard macro instructions did not always have counterparts in routines available to high-level languages. In modern operating systems such as Unix and derivatives, operating system access is provided through subroutines, usually invoking DLL routines. High-level languages such as C offer comprehensive access to operating system functions, obviating the need for assembler language programs for such functionality.


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • MACRO-INSTRUCTION — MACRO INSTRUCTI Le processus d’assemblage permet de produire une séquence d’instructions en langage machine à partir d’un programme écrit par le programmeur en langage symbolique. L’opération d’assemblage peut donc être assimilée à une opération… …   Encyclopédie Universelle

  • Macro-instruction — Macro définition Pour les articles homonymes, voir Macro. En programmation informatique, une macro définition ou simplement macro est l association d un texte de remplacement à un identificateur, tel que l identificateur est remplacé par le texte …   Wikipédia en Français

  • Macro Instruction —   [engl.], Makrobefehl …   Universal-Lexikon

  • macro-instruction — makrokomanda statusas T sritis automatika atitikmenys: angl. interpretive instruction; macro; macrocommand; macroinstruction; macroorder; macros vok. Makro, m; Makrobefehl, m; Makroinstruktion, f rus. макрокоманда, f pranc. macro instruction, f …   Automatikos terminų žodynas

  • macro-instruction de position — pozicinė makrokomanda statusas T sritis automatika atitikmenys: angl. positional macrocommand vok. Stellungsmakroanweisung, f; Stellungsmakrobefehl, m rus. позиционная макрокоманда, f pranc. macro instruction de position, f …   Automatikos terminų žodynas

  • macro instruction — noun a single computer instruction that results in a series of instructions in machine language • Syn: ↑macro • Hypernyms: ↑instruction, ↑command, ↑statement, ↑program line …   Useful english dictionary

  • macro-instruction — ● n. f. ►PROG Je n ai jamais rencontré ce terme sans trait d union. Syn. de macrocommande …   Dictionnaire d'informatique francophone

  • Macro-Définition — Pour les articles homonymes, voir Macro. En programmation informatique, une macro définition ou simplement macro est l association d un texte de remplacement à un identificateur, tel que l identificateur est remplacé par le texte dans tout usage… …   Wikipédia en Français

  • Macro-definition — Macro définition Pour les articles homonymes, voir Macro. En programmation informatique, une macro définition ou simplement macro est l association d un texte de remplacement à un identificateur, tel que l identificateur est remplacé par le texte …   Wikipédia en Français

  • instruction — [ ɛ̃stryksjɔ̃ ] n. f. • 1319; lat. instructio I ♦ Action d instruire. 1 ♦ Vx ou littér. Action d apprendre ce qu il est utile ou indispensable de savoir. ⇒ apprentissage, édification, initiation. 2 ♦ Action d enrichir et de former l esprit (de la …   Encyclopédie Universelle

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”