老師,不好意思,可以麻煩再解釋一次
PC-relative的好處(relocatable code)嗎?
A檔案說
we can move the code from one block of memory to another without changing
the target addresses
並不是很懂(move 什麼 code?? code 不是一直那裡給你讀嗎?),
PC-relative 跟 Absolute address 不是只有「計算下一個指令在哪」的方式不同而已?
算完以後還是都把PC移過去了不是嘛?
謝謝您。
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.112.26.170
※ 編輯: gglk 來自: 59.112.26.170 (10/17 00:14)
※ 編輯: gglk 來自: 59.112.26.170 (10/17 00:15)
※ 編輯: gglk 來自: 59.112.26.170 (10/17 00:36)