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.
Use the below instructions:
[*]PREFETCHT0
[*]PREFETCHT1
[*]PREFETCHT2
[*]PREFETCHNTA
[*]MFENCE
[*]SFENCE
[*]LFENCE
Good luck. I usually use PREFETCHNTA which proves to be really useful.