ucweb系统设置中的cache是什么意思有什么用?请高手解释一下!

来源:百度知道 编辑:UC知道 时间:2024/05/26 09:30:30

cache n. 高速缓冲存储器 一种特殊的存储器子系统,其中复制了频繁使用的数据以利于快速访问。存储器的高速缓冲存储器存储了频繁访问的 RAM 位置的内容及这些数据项的存储地址。当处理器引用存储器中的某地址时,高速缓冲存储器便检查是否存有该地址。如果存有该地址,则将数据返回处理器;如果没有保存该地址,则进行常规的存储器访问。因为高速缓冲存储器总是比主RAM 存储器速度快,所以当 RAM 的访问速度低于微处理器的速度时,常使用高速缓冲存储器。另见 wait state。【英】A special memory subsystem in which frequently useddata values are duplicated for quick access. A memory cache stores the contents of frequently accessed RAMlocations and the addresses where these data items are stored. When the processor references an address inmemory, the cache checks to see whether it holds that address. If it does hold the address, the data is returned tothe processor; if it does not, a regular memory access occurs. A cache is useful when RAM accesses are slowcompared with the microprocessor speed, because cache memory is always faster than main RAM memory.
Cache的出现是基于两种因素:首先,是由于CPU的速度和性能提高很快而主存速度较低且价格高,第二就是程序执行的局部性特点。因此,才将速度比较快而容量有限的SRAM构成Cache,目的在于尽可能发挥CPU的高速度。很显然,要尽可能发挥CPU的高速度就必须用硬件实现其全部功能。
Cache与主存之间可采取多种地址映射方式,直