answersLogoWhite

0


Best Answer

Both Macro & Subroutine are set of instructions that are called several times to perform a specific task. They act like functions that have a sequence of instructions stored and is often called by the program.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Similarities between macro and subroutine
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is main difference between macro and subroutins?

marco expand where it invoked ,subroutine will go where the subroutine is defined....


Why may you recommend the use of a macro instead of a subroutine inside a loop in a program?

A subroutine call generates additional work for the hardware to perform when activated. A macro in general does not call a subroutine but rather puts the commands in-line inside the loop, resulting in a faster program.


What is the similarities between micro and macro economics?

There are quite a number of similarities between micro and macro economics. Both are studies of different facets of the economy with micro-economy analyzing mechanism in the market and macroeconomics looking at government policies in the market among other things.


What are subroutine linkages?

The Mechanism that makes possible to transfer control between the calling program and Subroutine is reffered to as SUBROUTINE LINKAGE


Is Macro better than subroutine in terms of execution time?

Not particularily. It depends on what you are trying to accomplish. Generally, the more code you have stored in a module (Macro or sub-routine), the longer it will take to execute.


Difference between interrupt and subroutine in computer?

interrupt is a signal caused by I/O devices where as subroutine is a part of the program which is excuted rapidly


What is the difference between executing a macro and calling a macro?

Calling a macro loads the macro into memory, while executing the macro runs the macro.


What is enclosed between a macro header statement and a macro end statement?

The macro content.


3 What is the difference between a function procedure and a subroutine procedure?

Both a function and a subroutine are examples of out-of-line execution calls to code. The main difference is that a function call can be part of an expression and returns a value, whereas the subroutine can be called standalone and does not return a value.


Difference between delay subroutine and ordinary subroutine in context of 8085?

a subroutine is a portion of the code within a larger program which performs a specific function and is independent of remaining code.....delay routines are subroutines used for maintaining the timings of various operations in microprocessor


What is subroutine in java?

Subroutine mean what (in java)?


Difference between macro and micro?

Macro is big micro is little