What programmers need to know about hardware prefetching?
futurechips.org
futurechips.org
You should do yourself a favor and read it.
Second, programmers have very little control over instruction placement in memory.
Depending on your platform and type of application you may have full control over instruction placement and it might be extremely important to know how to sequence instructions to get maximum performance.
For C or another language, here's some related reading on that topic, and where you can get into deep trouble with this:
http://www.hpl.hp.com/personal/Hans_Boehm/misc_slides/pldi05... http://www.hpl.hp.com/personal/Hans_Boehm/misc_slides/reorde... http://www.hpl.hp.com/techreports/2005/HPL-2005-217R1.pdf http://www.hpl.hp.com/techreports/2004/HPL-2004-209.pdf