Friday, January 24, 2014

macro and macro processor definition

macro and macro processor definition


Macros are one line statement for group of instruction for example they are important line of code syntax. They are defined once in the programming and are continuous by calling them in different cases within the programs


Macros processor:->

Macros processor Is basically a software or application  that overwrite and replace it with  each macros and macro instruction with the related  group of source language’s  code/syntax  that a macro shows.
The work of macro processor is to make and replace it with one group of syntax for another. While the time of program compilation
Microprocessor only takes programming that are in assemble language containing macro calls and definitions and further convert it into programs that never contain macro calls and definition.
   
Usages Macro definition expansion and calls:->

syntax:->

Macro keyword 
<macro name here>[macro parameters specification and prototypes]

----------
----------
statements..
----------
-----------
MEND[keyword that ends goes here]

Macro definition shows statements that are grouped with assembler directive known as macros
Look at the macro prototype statements. This shows names of macros and type of parameter.
Parameters are known as macros instruction arguments and every argument starts with & sign.


And in the end macros calls and definition ends with ‘MEND’ keyword.

No comments:

Post a Comment