This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

extract function or module from a library

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 !

Parents
  • 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.

Reply
  • 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.

Children