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:
- 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?