I was just pondering a question regarding the approach the arm processor/memory controll takes torwards uncached data. I know in most cases with LUTs we try to get them smaller then the actual cache size, but I guess the question is "Is it really worth filling the cache with these values?"
When dealing with trig functions and division, how much locality is there?
Now I pose the question, what happens if we leave them in an uncached memory region? (using VirtualAlloc) If an uncached single 32bit word data access occurs, will the processor still fetch the whole cache line or will it only fetch the 4 bytes we require? (Thus quartering the time to load this value)
Don't have much time to test this myself, but if that was the case I'll probably end up rewriting a lot of my code.
Just A Thought
-Exocet
When dealing with trig functions and division, how much locality is there?
Now I pose the question, what happens if we leave them in an uncached memory region? (using VirtualAlloc) If an uncached single 32bit word data access occurs, will the processor still fetch the whole cache line or will it only fetch the 4 bytes we require? (Thus quartering the time to load this value)
Don't have much time to test this myself, but if that was the case I'll probably end up rewriting a lot of my code.
Just A Thought
-Exocet