Doug Paulsen

Boot loader: Preventing library calls

Discussion created by Doug Paulsen on Dec 13, 2010
Latest reply on Jan 27, 2011 by kef

Greetings:

 

Is there a pragma or compiler switch which forces CodeWarrior to generate in line code rather than library calls?

 

I am sure this has been asked before, but obviously one needs to prevent one's re-flashing boot loader from calling functions with are begin replaced, including those hidden ones the compiler itself generates to it's library.  

 

In my case, I have a boot segment which contains the boot loader code and a separate re-flashable code area.  A pointer manipulation in the boot loader compiled down to making a library call.  Unfortunately, that library function resides in the re-flashable code area and had been erased.  Oops!

 

I really want only  my boot load module to have this restriction.

 

Thanks for any suggestions.

doug

Outcomes