摘要: 如何减少和隐藏cache失效的延迟,是人们关注的热点。编译器为了得到cache访问命中的情况,往往使用模拟器去跑一遍来得到结果,这样的速度很慢。为了克服以上缺点,提出了在编译器中作cache profiling来获取cache访问的信息。类似于value profiling和stride profiling,cache profiling对访存指令作插装,可以有效地提高速度,并且只需要编译器的支持即可。Cache profiling获得的信息可以用来改进指令调度、软件预取、生成cache hint和辅助线程等。
关键词:
Profiling,
Cache profiling,
Cache hint,
编译器
Abstract: How to reduce and hide the latency of cache misses is the focus. To get the information of cache references, we often need to run simulators, which is very slow. To overcome this, this paper introduces cache profiling in compile without need of simulator. Similar to value profiling and stride profiling, cache profiling instruments instruct referencing memories, which can improve the speed significantly and only need the support of compiler. The information getting from cache profiling can be used to improve instruction scheduling, software prefetching, generating cache hints and helper threads.
Key words:
Profiling,
Cache profiling,
Cache hint,
Compiler
中图分类号:
周 谦;冯晓兵;张兆庆. Cache Profiling技术[J]. 计算机工程, 2006, 32(13): 47-48.
ZHOU Qian;FENG Xiaobing;ZHANG Zhaoqing. Cache Profiling[J]. Computer Engineering, 2006, 32(13): 47-48.