How to rebuild MSL_C with floating point support

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

How to rebuild MSL_C with floating point support

2,185 Views
Nouchi
Senior Contributor II
Hello,


I want to rebuild MSL_C with fp support in CW 7.0 for ColdFire.
I know how to do that with CW6.x, but it seems that ansi_prefix.CF.h have been widely modified.
I'm looking for a good documents which explain how to customize the MSL library.
I don't find anything in C:\Program Files\Freescale\CodeWarrior for ColdFire V7.0\Help\PDF :smileysad:



Thanks for help,
Emmanuel

Labels (1)
0 Kudos
2 Replies

372 Views
Black
Contributor I
Are you using the reduced set of libraries? This is usually met with the MCF Kirin family. Please refer to {CW installation folder}\Help\PDF\ColdFire_Build_Tools_Reference.pdf, chapter "Coldfire Runtime Libraries" -> "MSL for Coldfire Development" -> "Reduces Working Set Libraries" for more information on that.
 
Then please try the following:
- create a stationery project with the wizard for your evaluation board 
- remove the *_SZ_* libraries and replace them with the full version of the libraries
- adjust the file CodeWarrior for ColdFire V7.0\ColdFire_Support\msl\MSL_C\MSL_ColdFire\Include\ansi_prefix.CF.size.h as follows:
Code:
#define _MSL_FLOATING_POINT 1
//#define _MSL_NO_MATH_LIB 0
#undef _MSL_NO_MATH_LIB
#endif
#define _MSL_FLOATING_POINT_IO 1
- add this macro to prefix text on your Target setting -> C/C++Preprocessor
#define _CF_USE_FULL_LIBS_ 1
 
I hope this helps.
0 Kudos

372 Views
Nouchi
Senior Contributor II
Hello,


Great!
It works and there's no need to rebuild libraries.:smileyhappy:

0 Kudos