title: Memory in cache in C
body: <p>Is there some way to find out if memory I have requested is cached or not? And if so, it would be helpful to know in which level of cache is that chunk of memory stored.</p>
  
  <p>I had an idea that adress of pointer might change when its cached but it looks like that doesnt work.</p>
  
  <p>Edit: it is for university project and I have access to multiple machines with different OSs so almost any solution would help.</p>