Content deleted Content added
Removed unnecessary 'a' from "...to access a 1 MB of memory space." in top section, end of 3rd paragraph. |
make consistent format style of terms: Text, Data, BSS, Heap, and Stack |
||
Line 10:
A computer program memory can be largely categorized into two sections: read-only and read-write. This distinction grew from early systems holding their main program in [[read-only memory]] such as [[Mask ROM]], [[Programmable read-only memory|PROM]] or [[EEPROM]]. As systems became more complex and programs were loaded from other media into RAM instead of executing from ROM the idea that some portions of the program's memory should not be modified was retained. These became the ''.text'' and ''.rodata'' segments of the program, and the remainder which could be written to divided into a number of other segments for specific tasks.
===Text===
The '''code segment''', also known as a '''text segment''' or simply as '''text''', is where a portion of an [[object file]] or the corresponding section of the program's [[virtual address space]] that contains [[executable]] instructions is stored and is generally read-only and fixed size.
|