Intel 8087

From Wikipedia, the free encyclopedia

Intel C8087 Math Coprocessor
Intel C8087 Math Coprocessor

The 8087 was the first math coprocessor for 16 bit processors designed by Intel (the I8231 was older but designed for the 8 bit Intel 8080); it was built to be paired with the Intel 8088 and 8086 microprocessors. The purpose of the 8087, the first of the x87 family, was to speed up computations on demanding applications involving floating point command mathematics. The performance enhancements went from 20% to 500% depending on the specific application. The 8087 could perform about 50,000 floating point operations per second (FLOPS), depending on the operation performed.

This coprocessor introduced about 60 new instructions available to the programmer, their mnemonics all beginning with "F" to differentiate them from the standard 8086/88 integer math instructions. For example, in contrast to ADD/MUL, the 8087 provided FADD/FMUL. In binary format, all new instructions began with the bit pattern 11011, decimal 27, the same as the ASCII ESCAPE character, and so are sometimes referred to as "escape opcodes".

The 8087 (and, in fact, the entire x87 family) does not provide a freely addressable, linear register set such as the AX/BX/CX/DX registers of the 8086/88 and 80286 processors -- the x87 registers are structured in some form of stack (although it is not exactly like a typical stack data structure) ranging from ST0 to ST7. The floating point instructions of the 80x87 coprocessors operate by popping and pushing values onto this stack.

When Intel designed the 8087 it aimed to make a standard floating point format for future designs. In fact, one of the most successful things from a historical perspective of this coprocessor was the introduction of the first floating point standard for the x86 PCs: the IEEE 754 (although the Intel 8087 does not implement the eventual IEEE 754 standard in all its details, as the standard wasn't finished until 1985; the first Intel Coprocessor to implement it completely was the 80387). The 8087 provided two basic 32/64-bit floating point data types and an additional extended 80-bit internal support to improve accuracy over large and complex calculations. Apart from this, the 8087 offered an 80-bit/18-digit packed BCD (binary coded decimal) format and 16, 32 and 64-bit integer data types.

The 8087 differed from subsequent Intel coprocessors in that it was directly connected to the address and data buses. The 8088/86 looked for instructions that commenced with the '11011' sequence and relinquished control to the coprocessor. The coprocessor handed control back once the sequence of coprocessor instructions ended. There was a potential crash problem if the coprocessor instruction failed to decode to one that the coprocessor understood. Intel's later coprocessors did not connect to the buses in the same way, but were handed the instructions by the main processor. This yielded an execution time penalty, but the potential crash problem was avoided because the main processor would ignore the instruction if the coprocessor refused to accept it.

The 8087 was able to work out whether it was connected to a 8088 or a 8086 by monitoring the data bus during the reset cycle.

The 8087, announced in 1980, was superseded by the 80287, 80387DX/SX and the 80487. Intel 80486DX, Pentium and later processors include a built-in coprocessor on the CPU core.

The 8087 contains 45,000 transistors, 3-micron circuit technology (8086 has 29,000 transistors).

[edit] External links


Intel processors (italics indicate non-x86 processors)

4004 | 4040 | 8008 | 8080 | 8085 | 8086 | 8088 | iAPX 432 | 80186 | 80188 | 80286 | 80386 | 80486 | i860 | i960 | Pentium | Pentium Pro | Pentium II | Celeron | Pentium III | XScale | Pentium 4 | Pentium M | Pentium D | Pentium Extreme Edition | Pentium Dual Core | Pentium E | Xeon | Core | Core 2 | Itanium | Itanium 2

List of Intel microprocessors | List of Intel CPU slots and sockets