answersLogoWhite

0


Best Answer

A procedure, also sometimes called a function, routine or subroutine, is a section of code that performs a certain task which is used repeatedly within an application. For example, a procedure might sort the names in a list of names alphabetically. An application may hold a list of names of countries, cities, and people, and may be designed to use the same procedure to sort all three lists of names. It is characteristic for a procedure that the procedure's code exists once within the application. Executing the procedure requires that the processor "jumps" to the procedure and, upon completion, returns to the location following the "jump." Because this "jump" supports the means to return from the procedure, it is typically called a call, but terminology varies.

A macro typically contains a smaller section of code. Just like with a procedure, the macro supports a notion of "write once, use more than once." Unlike a procedure, however, a main thread of execution does not call the code and return from it. Instead, the macro inserts its code into the main code, and this expands into as many location as it is used.

For example, a macro could be a simple expression to obtain the number of names in the list of names. In this hypothetical example, this is is easily obtained and doesn't justify the overhead of call and return, and the application may benefit from the higher execution speed (at the price of an increased memory footprint).

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Difference bw macros and procedure in microprocessor?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Difference bw pdh sdh funtionality layout of Pakistan?

WHAT IS SDH


What d difference bw BTECH n BE?

Btech is Bachelor of Technology BE is Bachelor of Engineering


Define the difference bw cash receipt journal and cash receipt voucher?

Noting


Why are air max BW's called BW?

BW stands for "big window".


What does bw mean in text language?

bw


Difference bw QA and PMO?

QA: Quality AssurancePMO: Project Management OfficeThey're completely different things!


When was BW Offshore created?

BW Offshore was created in 1982.


What is the population of BW Group?

BW Group's population is 2,008.


What is BW Group's population?

BW Group's population is 4,000.


When was BW Group created?

BW Group was created in 2003.


When was BW Gas created?

BW Gas was created in 1935.


What is the population of BW Offshore?

BW Offshore's population is 1,200.