Memory Segment

Noun · Development

Definitions

  1. A contiguous region of a process's virtual address space with uniform permissions and purpose. Classic segments include `.text` (executable code), `.data` (initialized globals), `.bss` (zero-initialized globals), the heap (grows upward via brk/mmap), and the stack (grows downward).

    In plain English: A section of a program's memory dedicated to a specific purpose, like one area for code, another for data, and another for temporary variables.

    Example: "The crash is a segfault because the pointer is in the .text segment, which is mapped read-execute, not read-write."

Related Terms