> On Wed, Apr 17, 2013 at 09:29:34AM -0500, Greg London wrote:
>> > You can write macros that have varargs,
>> Dumb hardware engineer question:
>> Why use macros when you can write a function?
>
> In this very simple case it makes no significant difference.

When WOULD it make a difference?

The only thing I can think of is you don't have to make a call
to a subroutine. But all that saves you is dealing with the stack.

My tests are mostly generating stimulus for the dut.
The "OK" function is probably 0.001% of my processor time.
Even if I use a macro and make my "OK" function run ten
times faster, its only 0.0001% of my processor time.

Greg



_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to