Hi all. In my project, i need to use one of math function define in math.h. When I include this file, in my project, includes all functions that are defined in this files(1472 bytes it's a lot for one function seems to me). How to extract one functon from library? is it possible?
Thanks for help !
That's because you don't appreciate how much work is involved in that function!
Floating point maths does inherently take a lot more work than integer maths - so it is not at all surprising that this much code gets added!
This is why floating point is usually best avoided on a small microcontroller like the 8051.
I understand. Thanks for help. Thread close.