Deadstripping

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Deadstripping

2,985 Views
asmjockey
Contributor I

Hello,

 

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?  

 

Thanks!

Labels (1)
0 Kudos
Reply
6 Replies

1,833 Views
asmjockey
Contributor I

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!

 

 

0 Kudos
Reply

1,833 Views
CrasyCat
Specialist III

Hello

 

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.

 

ENTRIES
  myfile.c.o:*
END

 

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.

CrasyCat

0 Kudos
Reply

1,833 Views
eGuy
Contributor IV

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

0 Kudos
Reply

1,833 Views
asmjockey
Contributor I

Sorry, being explicit might be helpful, huh?  I'm using the HCS12 (ver 5) and the 56800E.

 

Thanks!

0 Kudos
Reply

1,833 Views
stanish
NXP Employee
NXP Employee

Hi, 

 

for CW for HCS12:  you can add the objects that you don't want to optimize into the ENTRIES section of your .prm file.

 

http://forums.freescale.com/freescale/board/message?board.id=CW816COMM&message.id=3900&query.id=9748... 

 

Stanish 

0 Kudos
Reply

1,833 Views
eGuy
Contributor IV

From Target Setting Panels -> ColdFire Linker -> Select "Disable Deadstripping"

 

J

0 Kudos
Reply