![]() |
|
|
|
|
|
|
3
19th October 09:38
External User
Posts: 1
|
K7 Optimization Manual goes through a rigorous process of deriving a fast
memcpt for Athlon. They got 1.6 GB/sec. I am not sure exactly what the specs on that system were, but the maximum theoretical throughput could not have been more than 2.1 GB/sec. You can also look at the code for ScienceMark (www.sciencemark.de). They have some copy memory routines that are freely downloadable. Also, look at the comments made in the thread "memcpy bandwidth on PIV" just 6 days ago. You may find some further relevant information there. -Matt |
|
|
6
19th October 09:40
External User
Posts: 1
|
Actually, if you're using C, the single statement:
memcpy( dest, source, size ); will expand to exactly that, inline, as long as optimizations are turned on. However, as Matt pointed out, it is possible to beat "rep movsd" if you're willing to work at it. -- - Tim Roberts, timr@probo.com Providenza & Boekelheide, Inc. |
|