Search This Blog

Friday, April 13, 2012

Difference between macros and procedures

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.

24 comments:

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

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

    ReplyDelete
  3. Replies
    1. great sir it help me a lot in my semester exam..

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

    ReplyDelete
  5. lol! the last one is indeed true :D

    ReplyDelete
  6. 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

    ReplyDelete