文件名称:Cache
- 所属分类:
- Linux/Unix编程
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2014-02-28
- 文件大小:
- 4kb
- 下载次数:
- 0次
- 提 供 者:
- 万**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
本程序主要用于测试系统在三种情况下计算1~10000000的速度差异。三种情况分别为:数据在寄存器中计算、使用cache计算、不使用cach只使用内存计算。编写的三个程序:寄存器版、cache版、uncachable版均达到预期效果。这个程序的难点在与关闭系统的cache,在大量查找资料,找寻了5种方法后,才最终成功,所有带failed的代码均表示失败的(之所以把失败的代码也发上来,一是为了避免大家再走弯路,二是希望加以改进,变失败为成功)。-This program is mainly used to test the system calculates the difference in speed from 1 to 10 million in the three cases. Three cases were: data in registers calculations, calculated using the cache, do not use cach calculated using only memory. Written three programs: Register version, cache version, uncachable version have the desired effect. The difficulty in the program on and off the system cache, after a lot of search for information, find the five methods, finally successful, all expressed with a failed code failed (reason for the failure of the code is made up, one for We then detours to avoid the second is hoped to be improved, turn failure into success).
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Cache
.....\cachable.c
.....\register.c
.....\register.s
.....\uncachable.c
.....\uncachable_change_cr0(failed).c
.....\uncachable_dma(failed).c
.....\uncachable_kernel(failed).c