Content deleted Content added
m modify description of data segmentation. |
|||
Line 11:
===Data===
[[File:Program memory layout.pdf|thumb|383x383px|This shows the typical layout of a simple computer's program memory with the text, various data, and stack and heap sections.]]
The ''.data'' segment contains any global or static variables which have a pre-defined value and can be modified. That is any variables that are not defined within a function (and thus can be accessed from anywhere) or are defined in a function but are defined as ''static'' so they retain their
int val = 3;
|