Memory Structure
✅ Memory
- Code area
- Data area
- Heap area
- Stack area
✅ Code area
as program code is run
save: code to be run
also called text area
- User coommand program code to be run
- OS will send program code from HDD to memory
- CPU will run the code line by line
✅ Data area
global variable, static
- 데이터 영역은 프로그램 시작과 함께 할당
- 프로그램이 종료되면 소멸
✅ Heap area
dynamic allocation
memory that programmer can control
- garabage collector
- memory allcoated from low to high address
✅ Stack area
as method is called
> local variable, parameter
This post is licensed under CC BY 4.0 by the author.