Intel instructions for access to memory which skips cache [duplicate]

牧云@^-^@ 提交于 2019-12-13 01:55:25

问题


Is there an instruction using which I can move a variable to/from memory and registers without it being stored in cache? I don't want to disable caching entirely by using CD bit, I only want to do this for individual memory accesses.


回答1:


movnt stores bypass cache, but movntdqa loads may not do that for normal (write-back) memory regions.

The instruction-set reference manual is very clear that it might not be any different from movdqa on WB memory, but IDK what actually happens on any current microarchitectures.

movntdqa is intended to speed up stuff like reading from WC video RAM, e.g. copying the results of a hardware video decoder back to main memory.



来源:https://stackoverflow.com/questions/37889896/intel-instructions-for-access-to-memory-which-skips-cache

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!