AnsweredAssumed Answered

Number of cycles taken by different instructions to copy a buffer is different.

Question asked by Jayanti on Apr 8, 2009
Latest reply on Apr 8, 2009 by Jayanti

When I use different instructions to copy a buffer from one location in memory to another, I observe that the number of cycles taken is different. The instructions are:

  • memcpy
  • for loop
  • loop in assembly.

I also observe that a memset instruction when used before starting cycle count has an effect on the count. Why?

Outcomes