Puedes seguirnos en

BUSCADOR

Engineering

The importance of macros in a microprocessor

In assembly language programs, small sequence of codes of the same pattern are repeated frequently at different places which perform the same operation on the different data of same data type. Such repeated code can be written separately as a macro. It is the same as functions in any high level programming language.

Macros

When assembler encounters a macro name later in the source code, the block of code associated with the macro name is substituted or expanded at the point of call, known as macro expansion. That’s why macro is called as subroutine.

Macro should be used when its body has a few program statements; otherwise, the machine code of the program will be large on account of the same code being repeated in the position where macros are used.  The process of defining macros and using them to simplify the programming process is known as macros programming.

 

Anuncio publicitario

Escrito por

Administrador de ENGGDRCAOS. Canal dedicado especialmente a la formación del estudiante que aspira a ser ingeniero. Todos los videos son Ingles. Apasionado del universo Apple, estudiante de Ingeniería y Gamer por vocación.

Publicidad

ARTÍCULOS RELACIONADOS

Engineering

Function prototyping is one of the key improvements added to the C++ functions. When a function call is encountered, the compiler checks the function...

Engineering

If we want two computers to communicate over a network, then the protocols on each layer of OSI model in the sending computer should...

Engineering

A large program is difficult to implement even if an algorithm is available, hence it should be split into number of independent tasks which...

Engineering

The concept at abstraction is commonly found in computer science. A big program is never written as a monolithic piece of program, instead it...