This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Reserving bytes in CODE space

Hi,

Is there an easy way to inhibit the link/locator from placing code at a specific address?

I know could manually locate a 'dummy' module containing a number of __nop__() calls to the address range that I want to 'mask', but this dosn't seem a very tidy solution.

Anyone have any better solutions?

Thanks

David

Parents
  • You can also specify multiple code areas that the linker CAN use. You can simply exclude the areas that you don't want the linker to use. For example: Code(0x0000-0x7FFF,0xA000-0xAFFF) excludes 0x8000-0x9FFF and 0xB000-0xFFFF.

    If you use the LX51 linker, there is a RESERVE directive that reserves memory areas.

    Jon

Reply
  • You can also specify multiple code areas that the linker CAN use. You can simply exclude the areas that you don't want the linker to use. For example: Code(0x0000-0x7FFF,0xA000-0xAFFF) excludes 0x8000-0x9FFF and 0xB000-0xFFFF.

    If you use the LX51 linker, there is a RESERVE directive that reserves memory areas.

    Jon

Children
No data