作者gglk (锦州挖挖)
看板CSIE_ASM
标题[问题] Relocatable code
时间Tue Oct 16 23:57:46 2007
老师,不好意思,可以麻烦再解释一次
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)