Hi
Is there a way to demonstare the cache usage of a program. I know it is invisibile to programmer but, sometimes data is stored in cache and sometimes in primary memory (RAM). So, is it possible to distinguish in a "magic way" ?
Thanks..
Hi
Is there a way to demonstare the cache usage of a program. I know it is invisibile to programmer but, sometimes data is stored in cache and sometimes in primary memory (RAM). So, is it possible to distinguish in a "magic way" ?
Thanks..
Quzah.Code:#include<stdmagic.h>
Hope is the first step on the road to disappointment.
Originally Posted by quzah
Bahahahahahaha.
I might ask my lecturer about that one.
it's ironic considerate rarity patron of love higher knowledge engulfs me...
Like cachegrind for example?
http://valgrind.org/info/tools.html
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Well, I found something useful from google.
http://www.cs.rpi.edu/~hollingd/comp.../CacheCode.ppt
This slide shows the concept of locality. And may be useful I think! Especially accessing a matrix from its rows or columns! There is a performance difference.