Hi I want to know how to do explict cache control using assembly instructions, or any programs which does it so that to optimize the source code, using cpu cache.
Posted on 2008-02-19 04:10:28 by sureshp

Use the below instructions:


      [*]PREFETCHT0
      [*]PREFETCHT1
      [*]PREFETCHT2
      [*]PREFETCHNTA
      [*]MFENCE
      [*]SFENCE
      [*]LFENCE


Good luck. I usually use PREFETCHNTA which proves to be really useful.
Posted on 2008-02-19 05:48:26 by XCHG