Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Memory layout of a process » ?

Aussi appelé : code segment · data segment

Definition 1.7 University Computer Science — Year 1 · Chapitre 1 — From Source Code to a Running Program

The memory layout of a process is the arrangement of a running program’s memory in regions. The code segment holds the machine code and, next to it, read-only data such as string literals; the data segment holds the variables that exist for the whole run, the initialised ones first and then the zero-initialised ones (traditionally called bss). Above them grows the heap, from which the program requests blocks while it runs (Chapter 5); near the top of the address space is the call stack, which holds the local variables of the functions being executed (Chapter 3).

The regions of a running program, in the order  found them, with how long an object in each region lives. The sizes are not to scale: the gap between the heap and the stack is by far the largest part of the address space.
The regions of a running program, in the order Output 1.6 found them, with how long an object in each region lives. The sizes are not to scale: the gap between the heap and the stack is by far the largest part of the address space.
Lire dans le chapitre →