Lecture3 Cda3101
Lecture3 Cda3101
Lecture3 Cda3101
PROCESS MEMORY
There are four general areas of memory in a process.
• The text area contains the instructions for the application.
• Text area may contain data (constants), accessed using PC-relative addressing mode
You can check out the pre-processed version of your code with the –E option. Prints to stdout.
You can check out the assembly version of your code with the –S option. Check the filename.s file.
STORED PROGRAM CONCEPT
• Memory can contain both instructions and data
and the computer is instructed to start executing
at a specific location.
• Different programs can be loaded in different
locations and the processor can switch between
processes very quickly.