I was wondering if there is a way to exclude the floating point libraries using calls to printf while I am using fixed point math and have no need for floating point math?
The whole point of a Library is that, if you don't use a function, it is not included in the build.
FP functions won't be included unless you actually use them.
http://www.keil.com/support/man/docs/c51/c51_lib_files.htm
FP functions won't be included unless you actually use them. is that so? does the library function 'know' if calls to printf use fp or not? I would think that in the printf code, somewhere there will be if (){ fp_something();
which will cause the fp libraty to be included
Erik
I have to agree with Mr. Malund on this one as my listing clearly shows that the floating point functions are built and part of the code space. At risk of repeating myself, I don't use any floating point math anywhere in my code and the libraries are now included since I started using the printf to format my output to my terminal interface.
I'd try nodefaultlibrary and include the one w/o fp that match the model you use, my guess would be it has dummies for the fp functions (otherwise printf would not work with the eval, and I have not heard it don't)
View all questions in Keil forum