Depending on the architecture, there are biased hints for moving data directly to the cache. For ia32, this is a prefetch statement that can move data to L1, L2.
On the other hand, there are instructions that tell the processor to avoid using a cache like moventdq , which moves data directly from / to memory.
Edit: In addition, there are instructions for setting memory ranges for certain types of caching algorithms, such as write, write, write, or combine. See http://en.wikipedia.org/wiki/Memory_type_range_register .
source share