On Thu, Jun 17, 2010 at 3:01 PM, Grant Edwards
<[email protected]> wrote:
> On 2010-06-17, JMGross <[email protected]> wrote:

>> interesting. Still two wasted bytes (I don't think the linker will
>> move the following code and adjust any other jumps if necessary),
>
> Yes, if the linker supports changing address modes, then it does
> move the following code.

FWIW, this is a well-known and tricky problem, because you can get
circular dependencies: short addressing at location A can only reach
site B if site B also uses short addressing, and vice versa. There's a
standard algorithm that deals with, for quite some time---I remember
first reading about it in the 80s.

Reply via email to