ECE344H1 Lecture Notes - Lecture 5: Address Space, Synopsys, Virtual Memory
Document Summary
A program is a static file containing instructions and data. When a program is run, it has three execution states. We have seen this in the last lecture. Holds program instructions, static and dynamic data values. Os-level state (holds state of other hardware) Holds state such as open files, network connection state, etc: address space. An address space is the set of virtual memory regions accessible to a program. Text (or code) region - the program code (usually read only) Data, heap regions - static, dynamic variables. Stack region - used for function and system calls. | | v | address | | ^ | space | | | | Var: a c program variable is a symbolic name for data stored in memory. Int: type of variable determines size and alignment of memory. Index of memory array where data is stored. E. g. , if data is stored at memory[i], then address is i.