SNU-ARC / 2024_spring_sysprog_Lab3

7 stars 0 forks source link

ds_heap_start와 heap_start 사이 간격 관련 질문드립니다. #10

Open YueunLee opened 5 months ago

YueunLee commented 5 months ago

ds_heap_start와 heap_start 사이 간격은 어떻게 봐야 하나요? image 그림대로 두 칸이 있어서 2 words 크기라고 생각했는데, 옆에 32-byte aligned라고도 쓰여 있어서 살짝 혼동되어 질문드립니다.

kwonsw055 commented 5 months ago

heap_start는 ds_heap_start 이후에 sentinel을 위한 1 word 크기를 남겨줄 수 있는 첫 32 byte aligned 주소입니다. (극단적인) 예로 ds_heap_start의 주소가 25 일 때, sentinel의 8 byte를 남겨주기 위해서 heap_start의 주소는 64가 됩니다.