Global Sources
EE Times-India
EE Times-India > EDA/IP

Optimising memcpy improves speed

Posted: 02 Jun 2004     Print Version  Bookmark and Share

Keywords:C library  memcpy()  system-memory 

The memcpy() routine in every C library moves blocks of memory of arbitrary size. It's used quite a bit in some programs and so is a natural target for optimisation. Cross-compiler vendors generally include a precompiled set of standard class libraries, including a basic implementation of memcpy(). Unfortunately, since this same code must run on hardware with a variety of processors and memory architectures, it can't be optimised for any specific architecture. An intimate knowledge of your target hardware and memory-transfer needs can help you write a much more efficient implementation of memcpy().

This article will show you how to find the best algorithm for optimising the memcpy() library routine on your hardware. The author will discuss three popular algorithms for moving data within memory and some factors that should help you choose the best algorithm for your needs. Although he uses an Intel XScale 80200 processor and evaluation board for this study, the results are general and can be applied to any hardware.

Continue reading the complete report for more information.

Comment on "Optimising memcpy improves speed"
*  You can enter [0] more charecters.
*Verify code:


Visit Asia Webinars to learn about the latest in technology and get practical design tips.


Go to top             Connect on Facebook      Follow us on Twitter      Follow us on Orkut

Back to Top