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

Turn off LJMP in Compiler

Is there any way to have the compiler
NOT generate LJMP's and other jumps
that use absolute addresses?

I'm asking because I'm trying to copy a
Flash loader into RAM, and so I'd like
all my jumps to be relative, otherwise
I have to adjust them.

Thanks,

Ed

  • The compiler/linker offer a way to create a function that executes at one address but which is stored at another address.

    To execute the function, you must memcpy it from CODE space to RAM or FLASH and then call it or jmp to it.

    Contact technical support if you have trouble figuring this out from the manuals. It's a little tricky but it works really well.

    Jon