In computing, a data segment (often denoted .data) is a portion of an object file or the corresponding address space of a program that contains initialized static variables, that is, global variables and static local variables. The size of this segment is determined by the size of the values in the program's source code, and does not change at run time.
The data segment is read/write, since the values of variables can be altered at run time. This is in contrast to the read-only data segment (rodata segment or .rodata), which contains static constants rather than variables; it also contrasts to the code segment, also known as the text segment, which is read-only on many architectures. Uninitialized data, both variables and constants, is instead in the BSS segment.
Historically, to be able to support memory address spaces larger than the native size of the internal address register would allow, early CPUs implemented a system of segmentation whereby they would store a small set of indexes to use as offsets to certain areas. The Intel 8086 family of CPUs provided four segments: the code segment, the data segment, the stack segment and the extra segment. Each segment was placed at a specific location in memory by the software being executed and all instructions that operated on the data within those segments were performed relative to the start of that segment. This allowed a 16-bit address register, which would normally be able to access 64 KB of memory space, to access 1 MB of memory space.
This segmenting of the memory space into discrete blocks with specific tasks carried over into the programming languages of the day and the concept is still widely in use within modern programming languages.
In computing, a datasegment (often denoted .data) is a portion of an object file or the corresponding address space of a program that contains initialized...
into segmentsSegment descriptor Datasegment Code segment Image segmentation, the process of partitioning a digital image into multiple segments Time-series...
currently used program code segment (CS), the current datasegment (DS), the current stack segment (SS), and one extra segment determined by the programmer...
alone. Segments may be created for program modules, or for classes of memory usage such as code segments and datasegments. Certain segments may be shared...
computer data storage, data striping is the technique of segmenting logically sequential data, such as a file, so that consecutive segments are stored...
or avoid redundant copies. Shared memory is an efficient means of passing data between programs. Depending on context, programs may run on a single processor...
In computing, a code segment, also known as a text segment or simply as text, is a portion of an object file or the corresponding section of the program's...
the segment tree is a data structure used for storing information about intervals or segments. It allows querying which of the stored segments contain...
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...
The Program Segment Prefix (PSP) is a data structure used in DOS systems to store the state of a program. It resembles the Zero Page in the CP/M operating...
lifestyles, attitudes, values, beliefs and culture to segment markets. With access to group-level data only, brand marketers approached the task from a tactical...
textual data followed by binary data. The order of the file layout is as follows: HEADER segment TEXT segmentDATAsegment Optional ANALYSIS segment CRC value...
a form of datasegment. In these languages, including the line __DATA__ (Perl) or __END__ (Ruby, old Perl) marks the end of the code segment and the start...
data belongs to code segment […] 82 same as 00, data belongs to datasegment […] 83 same as 00, data belongs to stack segment […] 84 same as 00, data...
read/write portion of the datasegment of a program are writable, while read-only data allocated in the const segment and the code segment are not writable. Thus...
Program Segment Prefix. EXE files normally have separate segments for the code, data, and stack. Program execution begins at address 0 of the code segment, and...
the space segment and user segment.: 1 The ground segment enables management of a spacecraft, and distribution of payload data and telemetry among interested...
Unix-like operating systems to control the amount of memory allocated to the datasegment of the process. These functions are typically called from a higher-level...
contains a "private data" segment after the terminator instead of the specified filler bytes "ec 11". This private datasegment must be deciphered with...
program's code or datasegment and so can be used only within parts of a program small enough to fit in one segment. Far pointers are 32-bit segment:offset pairs...
Control Protocol accepts data from a data stream, divides it into chunks, and adds a TCP header creating a TCP segment. The TCP segment is then encapsulated...
(historically known as code segment or text segment); shared libraries. Data, including: initialized data (datasegment); uninitialized (but allocated)...
the sender and receiver data, and the new "witness" structure would contain scripts and signatures. The original datasegment would be counted normally...
packet size imposed by all data link layers on the network path between the two hosts. The amount of data in a datasegment must be small enough to allow...
Stores-Segment-Area, Stores-Root-SSA. The program would then automatically wait till the requested data were retrieved and placed in the Segment-Area....