
APPLICATION ARCHITECTURE
REGISTER STACK
79 | 78 | 64 | 63 |
± EXPONENTSIGNIFICAND
CONTROL REGISTER
STATUS REGISTER
Figure 2-3. Numeric Coprocessor Registers
2.2 Memory and logical Addressing
80386 application programs use logical addresses to specify the locations of operands in a 4- gigabyte physical address space. The processor automatically translates these logical addresses to the physical addresses that it emits on the system bus. As discussed more fully in Chapter 3, an 80386 operating system can tailor an appli- cation program's view of its logical address space. For example, an operating system can define the logical address space as it is defined by many architectures, as a simple array of 232 bytes. Alternatively, an 80386 operating system can organize the logical address space as a collection of
application program actively uses segments de- pends on the framework established by the operating system.
2.2.1 Segments
As just mentioned, an operating system can define the 80386 logical address space as one or more segments. Segments are logical units that map well to programming structures, which are inherently variable in length. For example, a
An 80386 segment can be any size from 1 byte to 4 gigabytes. For every segment, the operating system maintains an
2.2.2 Logical Addresses
Because a program may potentially refer to multiple segments, an 80386 logical address must identify a segment. Therefore, an 80386 logical address consists of two parts, a