clflush not flushing the instruction cache

前端 未结 2 1380
予麋鹿
予麋鹿 2021-02-06 18:01

Consider the following code segment:

#include 
#include 
#include 
#define ARRAYSIZE(arr) (sizeof(arr)/sizeof(arr[         


        
2条回答
  •  情书的邮戳
    2021-02-06 18:59

    it works well on my computer.

    264 ticks
    Function must be cached by now!
    258 ticks
    Function flushed from cache.
    519 ticks
    Function must be cached again by now!
    240 ticks
    

提交回复
热议问题