ArticleslgStudy

computer science

Segment descriptor

Segment descriptor is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Segment descriptor rather than just read about it. In short: In memory addressing for computer architectures, segment descriptors are a part of the segmentation unit, used for translating a logical address to a linear address or to the address of a page table. Segment descriptors describe the memory segment referred to in the logical address.

Segment descriptor — main illustration
Segment descriptor — illustration

Key takeaways

  • Segment descriptor belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Segment descriptor to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Segment descriptor from memory before moving on to harder problems.

Reference excerpt

In memory addressing for computer architectures, segment descriptors are a part of the segmentation unit, used for translating a logical address to a linear address or to the address of a page table. Segment descriptors describe the memory segment referred to in the logical address.

Structure The segment descriptor contains the following fields:

A segment base address or page table address The segment limit which specifies the segment size Access rights information containing the protection mechanism information Control bits

Intel The segment descriptor is 8 bytes long in 80286 and later.

The 80286 segment descriptor The 80286 segment descriptor has the following form:

The x86 and x86-64 segment descriptor The x86 and x86-64 segment descriptor has the following form:

What the fields stand for:

Base Address Starting memory address of the segment. Its length is 32 bits and it is created from the lower part bits 16 to 31, and the upper part bits 0 to 7, followed by bits 24 to 31. Segment Limit Its length is 20 bits and is created from the lower part bits 0 to 15 and the upper part bits 16 to 19. It defines the address of the last accessible data. The length is one more than the value stored here. How exactly this should be interpreted depends on the Granularity bit of the segment descriptor. G=Granularity If clear, the limit is in units of bytes, with a maximum of 220 bytes. If set, the limit is in units of 4096-byte pages, for a maximum of 232 bytes. D/B D = Default operand size : If clear, this is a 16-bit code segment; if set, this is a 32-bit segment. B = Big: If set, the maximum offset size for a data segment is increased to 32-bit 0xffffffff. Otherwise it's the 16-bit max 0x0000ffff. Essentially the same meaning as "D". L=Long If set, this is a 64-bit segment (and D must be zero), and code in this segment uses the 64-bit instruction encoding. "L" cannot be set at the same time as "D" aka "B". (Bit 21 in the image) AVL=Available For software use, not used by hardware (Bit 20 in the image with the label A) P=Present If clear, a "segment not present" exception is generated on any reference to this segment DPL=Descriptor privilege level Privilege level (ring) required to access this descriptor S=System Segment If clear, this is system segment, used to handle interrupts or store LDT segment descriptors. If 1, this is Code/Data segment. Type If set, this is a code segment descriptor. If clear, this is a data/stack segment descriptor, which has "D" replaced by "B", "C" replaced by "E"and "R" replaced by "W". This is in fact a special case of the 2-bit type field, where the preceding bit 12 cleared as "0" refers to more internal system descriptors, for LDT, LSS, and gates. C=Conforming Code in this segment may be called from less-privileged levels. E=Expand-Down If clear, the segment expands from base address up to base+limit. If set, it expands from maximum offset down to limit, a behavior usually used for stacks. R=Readable If clear, the segment may be executed but not read from. W=Writable If clear, the data segment may be read but not written to. A=Accessed This bit is set to 1 by hardware when the segment is accessed, and cleared by software.

IBM S/370 and successors

The S/370, S/370-XA, ESA/370 and ESA/390 segment table entries (STEs) are one word long. All processors running in S/370 mode used the same format, but not all supported the common-segment facility and the protected segment facility. XA introduced a new format and replaced segment protection with page protection. With z/Architecture the STE is a doubleword.

The S/370 segment-table entry The segment-table entry for the S/370 has the following form

Page-Table Origin Left 21 bits of Page Table Origin (PTO), has 3 zero bits appended TBL Table length in units that are 1⁄16 of the maximum allowed size, offset by one unit. P Segment-Protection Bit C Common-Segment Bit I Segment-Invalid Bit

The S/370-XA through S/390 segment-table entry The segment-table entry for the S/370-XA, ESA/370 and ESA/390 has the following form

Page-Table Origin Left 25 bits of PTO, has 6 zero bits appended I Invalid C Common-Segment Bit TBL Table length in 64-byte units, offset by one unit

The z/Architecture segment-table entry In the original z/Architecture, a segment is always subject to paging and the Segment-Table Entry always points to a page table. However, on a model equipped with the Enhanced-DAT Facility 1, the Enhanced-DAT-enablement control (bit 40) o The segment-table entry for the z/Architecture has the following forms

Page-Table Origin Left 53 bits of PTO, has 11 zero bits appended FC=0 Format Control - paged segment P DAT-protection (fetch protect) I Segment-Invalid Bit CS Common-Segment Bit TT=00 Table Type Segment

ACCF-Validity Control (AV) Use ACC to check key ACC Access control key F Fetch protection when AV=1 FC=1 Format Control - points to absolute address P DAT-protection (fetch protect) Instruction-Execution-Protection (IEP) Control Instruction execution prohibited I Segment-Invalid Bit CS Common-Segment Bit TT=00 Table Type Segment

See also Burroughs large systems descriptors Memory segment Memory address

Notes

References z-14 z/Architecture Principles of Operation (PDF) (Fifteenth ed.). IBM. April 2025. SA22-7832-14. Retrieved July 3, 2025.

Tabak, Daniel (1991). Advanced Microprocessors. McGraw Hill and Co. ISBN 9780070628076. Hall, Douglas. Microprocessors and Interfacing. McGraw Hill Publications.

Further reading Robert R. Collins (August 1998). "The Segment Descriptor Cache". Dr Dobb's Journal.

External links Intel 80386 Reference Programmer's Manual - Segment Translation

Worked examples

Example 1 — a first encounter with Segment descriptor

Start with the simplest possible case. Write down what Segment descriptor claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Segment descriptor before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Segment descriptor ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Segment descriptor

In research
Segment descriptor appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Segment descriptor in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Segment descriptor is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer science stubs, Memory management, Operating system kernels, so understanding it makes those chapters shorter.
In everyday life
Look for Segment descriptor outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Segment descriptor” →

How to study Segment descriptor in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Segment descriptor means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Segment descriptor out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Segment descriptor in simple terms?

In memory addressing for computer architectures, segment descriptors are a part of the segmentation unit, used for translating a logical address to a linear address or to the address of a page table. Segment descriptors describe the memory segment referred to in the logical address.

Why does Segment descriptor matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Segment descriptor?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Segment descriptor.

Tags

  • Computer science stubs
  • Memory management
  • Operating system kernels
  • X86 architecture

Keep exploring