Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/23/05 07:54
Read: times


 
#95682 - Macro vs Call
Responding to: ???'s previous message
Abhishek Singh said:
Macros are efficient in terms of speed as no extra processor cycles will be required to invoke the 'sequence' as the whole instruction sequence is inline

Absolutely.
The downside should now be obvious: Macros are "inefficient" in terms of Code Size as the whole instruction sequence is repeated inline every single time it is used.

For a delay loop, there is probably no advantage to using a macro - the overhead of the call & return can simply be taken into account when calculating the number of loop iterations required.

(a delay of just a few NOPs would be different...)

List of 13 messages in thread
TopicAuthorDate
How to use marco in assembly?            01/01/70 00:00      
   first you must spell it macro :)            01/01/70 00:00      
      first you must spell it macro :)            01/01/70 00:00      
      Not So Fast!            01/01/70 00:00      
      Macro Correction            01/01/70 00:00      
      improvement            01/01/70 00:00      
         to be more precise            01/01/70 00:00      
            Delay            01/01/70 00:00      
               I did not say...            01/01/70 00:00      
   Macros Defined            01/01/70 00:00      
      Macro vs Call            01/01/70 00:00      
         Macro Correction            01/01/70 00:00      
   Polo!            01/01/70 00:00      

Back to Subject List