[Haskell-cafe] RE: [Haskell] Programming language shootout (completing theHaskell entry)

31 Mar
2004
31 Mar
'04
8:35 a.m.
When compiling via gcc, there's the __builtin_prefetch function:
http://gcc.gnu.org/onlinedocs/gcc-3.3.3/gcc/Other-Builtins.html (about 2/3rds of the way down the page)
Thanks, I wasn't aware of that.
see also: http://gcc.gnu.org/projects/prefetch.html
I didn't read it very carefully, but it's not clear (on the x86 cpus) if there is a prefetch instruction that is common between the amd & intel flavours, ie would a ghc binary with prefetch be portable between P3/P4/Athlon.
P3/P4 and Athlon have different prefetch instructions. However, Athlon64 supports the P3/P4 instructions. Cheers, Simon
7772
Age (days ago)
7772
Last active (days ago)
0 comments
1 participants
participants (1)
-
Simon Marlow