Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Processor cache

Name: Anonymous 2014-01-30 13:06

Hi /prog/,
The people who write high-perforance stuff must use a lot of tricks like putting the data in a continuous chunk of memory and splitting your program by what is done with your data instead of what is your data. Now, all these tricks are used to make sure you don't get a cache miss, but couldn't they be considered premature optimization?

What if the cpu let us specify what should be put in its cache; then compilers could automatically manage this, and people who needs extreme performance would have more control over the cache.

Thanks

Name: Anonymous 2014-01-31 5:58

>>8
No they aren't : as I said in OP, you gotta do all kind of optimization tricks to "trick" the CPU in keeping the data you want in the cache.
>>6
Even if you wrote in machine code, you wouldn't be able to tell the CPU what to put in its cache on modern processors.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List