Message Edited by BugMan on 2006-08-2202:02 AM
Message Edited by BugMan on 2006-08-22 02:02 AM
Hello
I have used CodeWarrior for Coldfire V6.3, created a new project using a stationery for CF_M5213EVB and I plugged following source code in my main.c function:
Code:
#include <stdlib.h>#include <stdio.h>#include <math.h>int main(){double dummy;dummy = atof("12.35");dummy = floor(dummy);while(1); // Idle}
I have replaced the library file C_TRK_4i_CF_SZ_MSL.a by C_TRK_4i_CF_MSL.a.
I am then able to link the application. I have removed the printf from the application as this one generates a lot of code when floating point formatting is enabled. And the application would not fit the available memory.
CrasyCat
#define _MSL_FLOATING_POINT 1//#define _MSL_NO_MATH_LIB 0#undef _MSL_NO_MATH_LIB#endif#define _MSL_FLOATING_POINT_IO 1
Hello
In fact C_TRK_4i_CF_SZ_MSL.a is the Reduced Working Set Library for Coldfire. It does not contain support for Floating point functions.
Please refer to {Install}\Help\PDF\ColdFire_Build_Tools_Reference.pdf, chapter "Coldfire Runtime Libraries" -> "MSL for Coldfire Development" -> "Reduces Working Set Libraries" for more information on that.
CrasyCat
Message Edited by J2MEJediMaster on 2006-08-23 11:57 AM
Message Edited by BugMan on 2006-08-24 01:52 AM
Message Edited by BugMan on 2006-08-24 01:55 AM