News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Problem with LOCAL variables

Started by Gwyn, February 20, 2013, 08:23:57 AM

Previous topic - Next topic

qWord

Quote from: MichaelW on February 22, 2013, 04:31:22 AMAnd I failed to consider that the high loop count would "blend out" cache misses, when the only thing I can see that could make locals faster is a reduction in cache misses.
After the first round everything is cached for all variants. From this point on we are measuring the plain execution time of instructions and not the memory access - Isn't this what we want to measure when proving the postulation "it can also be assumed that locals are always cached"?
Looking on my result with your (unmodified) test, we can see that at least on my i7 there no difference between the global and local variant (the same as for your P4) - that's why I think we should make one-shoot measurements.
MREAL macros - when you need floating point arithmetic while assembling!