Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- system
- mysql
- Linux
- computer
- MacOS
- control
- php
- architecture
- XML
- Class
- Algorithm
- DB
- data structure
- MIPS
- web
- function
- instruction
- github
- DS
- python
- react
- DoM
- html
- javascript
- for
- CSS
- while
- Pipelining
- Java
- DATAPATH
Archives
- Today
- Total
YYYEJI
[CA] Simple Memory Layout 본문
728x90
간단하게 메모리 레이아웃에 대해서 설명해 드리겠습니다.
Stack ↓ ↑ Dynamic data |
Static data |
Text |
Reserved |
↑↑↑ Memory Layout ↑↑↑
✓ Reserved는 op가 접근하는 부분으로 우리가 접근하려고 하면 error가 뜹니다.
✓ Text는 program code가 저장되어 있습니다.
✓ Static data에는 global variable이 저장되어 있습니다.
✓ Dynamic data는 heap 공간으로 새로운 공간이 malloc되고 free 되는 공간입니다.
✓ Stack은 function call이 일어날 때 사용되는 공간입니다.
(automatic storage로 function에서 사용되는 register의 값들이 저장될 때 사용됩니다.)
◡̈
'Computer architectures' 카테고리의 다른 글
[MIPS] Array에서 값을 가져오고 저장하는 Assembly code (0) | 2022.10.19 |
---|---|
[MIPS] Bit-wise AND(&)로 Logical AND(&&) 구하기 (2) | 2022.10.19 |
[MIPS] Procedure Call using Stack (0) | 2022.10.10 |
[MIPS] Procedure call (0) | 2022.10.10 |
[MIPS] Addressing mode (0) | 2022.10.10 |