Hello,
I want to split my program, so that about half of my c modules are linked starting from 0 and the other half starting from 0x4000. I configured the L166 to "use linker control file" (project options -> L166 Misc) and defined withing the rec.lin file a new section "..., MYSPECIALCODE (0x4000-0x7FFF), ..."
But how do I tell the linker what c and h files should be within the MYSPECIALCODE section??
Hoping for help
Tobi
I asked you three days ago: "I think you better explain more. WHY do you not want one part of the code to change?"
As long as you ignore that question, we have a hard time helping you. We can see your issues but can't know what alternatives to suggest if we don't know what problem you feel you need to solve. All you have said is that it isn't related to a boot loader.
Having a fixed part call functions in a non-fixed part can be done by the use of a jump table at a fixed - and known - location.
Having a non-fixed part call functions in a fixed part can be done since the fixed part would have known addresses for the functions. Or by using a jump table.
"How would it work to seperate the two parts in two builds and reuniting them into one target??"
Only by having the two parts separately built, can you be sure that the two parts could be individually linked without any hidden accesses to the other part (such as global variables used inside the CRTL, or helper functions etc).