AnsweredAssumed Answered

Coldfire Lite not compatible with new Codewarrior 7.2

Question asked by Marc Vandenhende on Jan 28, 2010
Latest reply on Jan 30, 2010 by Marc Vandenhende

Yesterday I found out about the new release of Codewarrior for Coldfire and decided to try it out right away on my Coldfire Lite based application.

 

After some playing around with the project settings and selecting the right libraries (I use some libs in my project), I managed to compile and link the project correctly. I noticed right away that code space required by the libraries is now much smaller. The original code size including libs was about 130K when compiled with Codewarrior 7.1.2, but now, when compiled with CW7.2, the code size is only about 88K! That's quite an improvement!

 

But it was impossible to get the program running. The program crashed almost immediately after starting.

 

A little debugging and some code disassembly learned me that this must be caused by the way variables are passed to functions, which is done differently by the CW7.2 compiler compared to the earlier versions. That is OK as long as only C code is used, but not when passing parameters to assembly language functions, and those functions are written to expect parameter passing in a specific way.

 

Coldfire Lite does use some assembly language functions. I am now trying to get these fixed and get the project up and running. But I have very little experience with coldfire assembler, so this may take some time. It will be a good learning school though...

Outcomes