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

link against absolute object module

Hi All;

Is there any way to link against an absolute object module? I would like to compile and link an application, and then create an extension project which uses the executable as a library; i.e. the extension calls functions in the application. I need to compile extensions after the application has been committed to ROM.

I tried passing the absolute object module to the linker when compiling the extension, but the linker ignores it and does not resolve function calls.

I could extract the address of all functions in the application from the M51 listing file and use them as function pointers in the extension but it'd be handy if the linker did it. And even still I can't think of any way to include the function declarations (so argument types are checked) without causing link errors.

Thanks for any help.

Robert

0