Re: prefetch seem don't work ?!



"Claudio Daffra" <spamtrap@xxxxxxxxxx> wrote:

Hi all

I'm trying to use prefetch instrunction on AMD64 (939 3200+), without
result.
I have compile program with gcc in two different ways :
- with prefetch instruction and without but the time is same in both
test and in other test.

how can improve this program ?
...
Home$ time ./pr2

real 0m0.002s
user 0m0.000s
sys 0m0.004s
Home$

This is not enough time to do reliable timings. You should run this in a
loop 100 or 1,000 times to get a better idea of the real time.
--
- Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.

.