The process Process memory is divided into four sections max stack The text section comprises the compiled program code, read in from an executable program The data section stores global and static variables allocated and initialized prior to executing main The heap is used for dynamic memory allocation, and is managed via calls to new, delete malloc, free, etc The stack is used for function parameters, local variables return addresses data Current activity including status, program counter text processor registers,…- The Process • Process memory is divided into four sections: • The text section comprises the compiled program code, read in from an executable program. • The data section stores global and static variables, allocated and initialized prior to executing main. • The heap is used for dynamic memory allocation, and is managed via calls to new, delete, malloc, free, etc. • The stack is used for function parameters, local variables, return addresses. • Current activity including status, program counter, processor registers, …