Jump to content

Instruction prefetch

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 24.231.83.72 (talk) at 20:57, 25 May 2007. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

The very first thing to know about Prefetching on a computer is that it is very helpfull. Unlike the tons of sites that say deleting the files in the Prefect folder is good, this is a complete lie.

If you would like to know more about Prefetching, search 'Prefetch' on Google and look for EdBotts Website. If the info is still there, it is very helpfull. Or you can click here.

In computer architecture, instruction prefetch is a technique used in microprocessors to speed up the execution of a program by reducing wait states.

Modern microprocessors are much faster than the memory where the program is kept, meaning that the program's instructions cannot be read fast enough to keep the microprocessor busy. (See CPU cache for a common workaround.)

Prefetch is the processor action of getting an instruction from the memory well before it will need it. In this way, the processor will not need to wait for the memory to answer its request.

The prefetched instruction may simply be the next instruction in the program, fetched while the current instruction is being executed. Or, the prefetch may be part of a complex branch prediction algorithm, where the processor tries to anticipate the result of a calculation and fetch the right instructions in advance. In the case of dedicated hardware (like a Graphics Processing Unit) the prefetch can take advantage of the spatial coherence usually found in the texture mapping process. In this case, the prefetched data are not instructions, but texture elements (texels) that are candidates to be mapped on a polygon.

The first mainstream microprocessors to use some forms of instruction prefetch were the Intel 80286 and the Motorola 68020.