Macros
|
Procedures
|
Accessed during assembly when name
given to macro is written as an instruction in the assembly program.
|
Accessed by CALL and RET
instructions during program execution.
|
Machine code is generated for instructions each time a
macro is called.
|
Machine code for instructions is put only once in the
memory.
|
This due to repeated generation of
machine code requires more memory.
|
This as all machine code is defined
only once so less memory is required.
|
Parameters are passed as a part of the statement in which
macro is called.
|
Parameters can be passed in register memory location or
stack.
|
I don’t use macros.
|
I do use procedures.
|
The blog talks about variety of topics on Embedded System, 8085 microprocessor, 8051 microcontroller, ARM Architecture, C2000 Architecture, C28x, AVR and many many more. Also includes some projects that have been worked upon and also episodes to Embedded System Podcast.
Search This Blog
Friday, April 13, 2012
Difference between macros and procedures
Subscribe to:
Post Comments (Atom)
its very easy to understand........
ReplyDeleteThankyou.........
nice
ReplyDeletenice
ReplyDeleteHow about procedures in static languages? such as Fortran 77.
ReplyDeletenice
ReplyDeleteThanks Keep visiting....
Deletety
ReplyDeleteYou are welcome...
DeleteThank you....
ReplyDeleteYou are welcome...
Deletethank you very much.
ReplyDeleteYou are Welcome...
DeleteThanks....
ReplyDeleteThanks a lot
ReplyDeleteYou are welcome...
Deletethnq it is helpful
ReplyDeleteYou are welcome...
Deletegreat sir it help me a lot in my semester exam..
DeleteYou are welcome...
ReplyDeleteThe last difference was absolutely wonderful ☺️☺️☺️☺️ u r a savage af
ReplyDeletelol! the last one is indeed true :D
ReplyDeletePlz explain with examples also..........it's really good
ReplyDeleteTq so much
ReplyDeleteNice
ReplyDeleteOk
ReplyDelete