Search This Blog

Friday, April 13, 2012

Difference between macros and 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.


  1. its very easy to understand........

  2. How about procedures in static languages? such as Fortran 77.

  3. The last difference was absolutely wonderful ☺️☺️☺️☺️ u r a savage af

  4. lol! the last one is indeed true :D

  5. Thanks for such important information.keep up the good work.Ethical Hacking training is based on current industry standards that helps attendees to secure placements in their dream jobs at MNCs. Indian Cyber Army Provides Best Ethical Hacking Training in India.Indian Cyber Army credibility in Ethical hacking training & Cybercrime investigation training is acknowledged across nation as we offer hands on practical knowledge and full assistance with basic as well as advanced level ethical hacking & cybercrime investigation courses

  6. Plz explain with examples's really good