Data segment

This is an old revision of this page, as edited by Greenrd (talk | contribs) at 23:50, 2 May 2007 (stub sorted). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

A data segment is one of the sections of a program in an object file or in memory, which contains the global variables that are initialized by the programmer. It has a fixed size, since all of the data in this section is set by the programmer before the program is loaded. However, it is not read-only, since the values of the variables can be altered at runtime. This is in contrast to the Rodata (constant, read-only data) section, as well as the text segment.

See also