memory model
Segments
- text
- data
- stack
text segment
contains the code of the program. The program counter points to something in this memory as the next address to go
data segment
contains global variables and the heap (global buffer)
stack
extra local variables
for current or pending functions