This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Understanding Macro Pre-processor


On 20 September 2007 20:44, Bruno Moreira Guedes wrote:

> Bu I've been made some tests... By example... A macro:
> 
> #define mul(X,Y) (X*Y)
> 
> 
> It makes the processing faster... 

  Your test methodology is broken.

> But... Why executing that a milion of times is faster than using the
> simple a*b itself???

  It isn't.

> It really happens? 

  It doesn't.

> Why?

  Because you did one timing run when your system was under very heavy load of
background tasks and the other when it was under very light load, most likely.


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]