I've not found a way to turn off deadstripping within the IDE. Is there a way to do this without linking at the command line?
From Target Setting Panels -> ColdFire Linker -> Select "Disable Deadstripping"
Sorry, being explicit might be helpful, huh? I'm using the HCS12 (ver 5) and the 56800E.
for CW for HCS12: you can add the objects that you don't want to optimize into the ENTRIES section of your .prm file.
You can also try this: ( I used it on my 52259 project)
#pragma force_active on
// put the code you wish to keep ( not optimized away) here
#pragma force_active off
Thank you both, eGuy and stanish!
I'm really looking for a global handling - running an RTOS that indirectly uses lots of unlabeled pointers. Manually linking with a postpended '+' on each obj works fine, and I was hoping there's a way I didn't see to do that. I guess maybe a linker.bat to add the '+' might have to be it.
I appreciate it!
Notation to use is different for DSP56800E and for HC12.
For HC12 if you want to disable dead striping for a module called myfile.c, use following notation in your application .prm file.
You can enumerate several files in the ENTRIES block. Just use space character as separator.
For DSP58000E, you can disable dead striping for a specific section using linker command KEEP_SECTION.
You just have to place whole code from that module in a user defined section and disable dead striping for that section.
Retrieving data ...