Hello
Are you intending to use floating point variables in printf?
You should be able to get a smaller footprint for that function if you are not using floating point.
Upgrading to a later version of CodeWarrior (V3.1 or later)), we have new library files used when floating point arithmetic is used in the application (ansii.lib instead of ansi.lib) for instance.
Footprint for sprintf is much smaller there (around 1600 bytes if I remember well).
If you want to stick with V3.0 you may have to regenerate the desired ANSI library specifying you do not want to use floating point arithmetic in sprintf.
Take a look at the attached technical note for information on how to regenerate library files.
You have to set LIBDEF_PRINTF_FLOATING to 0 in libdefs.h and rebuild the library (or at least rebuild printf.c).
If you have a special edition I think you will not be able to rebuild the whole library. You will then have to rebuild printf only
I hope this helps.
CrasyCat
Hello
Well printf is not just converting an int to a string. It is doing much more that this (specifically in formatting the output string).
The size specified is the size of the function sprintf which does not support floating point conversion.
For sure if you just need to convert a int to a string, you can get a smaller footprint.
CrasyCat