How does loop address alignment affect the speed on Intel x86_64?
- by Alexander Gololobov
I'm seeing 15% performance degradation of the same C++ code compiled to exactly same machine instructions but located on differently aligned addresses. When my tiny main loop starts at 0x415220 it's faster then when it is at 0x415250. I'm running this on Intel Core2 Duo. I use gcc 4.4.5 on x86_64 Ubuntu.
Can anybody explain the cause of slowdown…