且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

有关基本计算机的简单问题

更新时间:2023-01-30 08:35:52

两个不同的事物:
寄存器是整个处理器中很小的数据单元-通常与处理器可以处理的宽度相同,分别为8位,16位,32位或64位-尽管出于各种原因,某些寄存器可能会更小.这样的数据永远不会离开处理器,而无需执行特定的指令来传输它.
L1高速缓存是处理器内部的一个内存区域,用于保存通常驻留在处理器外部的信息,因此在继续之前,它不必等待对外部的读取或写入信息.

Wiki很好地解释了此处的缓存: http://en.wikipedia.org/wiki/CPU_cache [ ^ ]
Two different things:
A register is a small unit of data entirely within the processor - normally the same width as the processor can handle, 8 bit, 16 bit, 32 bit or 64 bit - although some can be smaller for a huge variety of reasons. Such data never leaves the processor to get to the outside world without a specific instruction being executed to transfer it.
A L1 Cache is an area of memory within the processor which is used to save information that normally resides outside the processor, so that it does not have to wait for it to be read or written to the outside world before continuing.

Wiki has a good explanation of caching here: http://en.wikipedia.org/wiki/CPU_cache[^]