This preview shows page 1. Sign up to view the full content.
Unformatted text preview: hat is common to all processes. The bottommost 3/4 of the address space holds the code and data deﬁned by the user’s process. Note that addresses in the ﬁgure increase from bottom to the top. The virtual address space seen by each process consists of a number of well-deﬁned areas, each with a speciﬁc purpose. We will learn more about these areas later in the book, but it will be helpful to look brieﬂy at each, starting with the lowest addresses and working our way up: ¯ ¯ ¯ ¯ Program code and data. Code begins at the same ﬁxed address, followed by data locations that correspond to global C variables. The code and data areas are initialized directly from the contents of an executable object ﬁle, in our case the hello executable. We will learn more about this part of the address space when we study linking and loading in Chapter 7. Heap. The code and data areas are followed immediately by the run-time heap. Unlike the code and data areas, which are ﬁxed in size once the process begins running, the heap...
View Full Document
This note was uploaded on 09/02/2010 for the course ELECTRICAL 360 taught by Professor Schultz during the Spring '10 term at BYU.
- Spring '10
- The American