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

Compiler using dadd, etc even though all reals are floats

I'm using the MDK-ARM compiler to build a project for the ADuC7061 microcontroller. It's a 32k part so memory is a little tight and I've been going through the .map file to see where all the FLASH is being used. What I notice is that the compiler is pulling in dadd.o, ddiv.o, depilogue.o, dmul.o and dsqrt.o (amongst others) when as far as possible I am only using floats in my code, not doubles. Essentially I'm after some advice as to whether this is essential (eg. does fadd.o simply call dadd.o), or if not some advice on tracking down where these library functions are getting called and eliminating them.

Thanks,

Mark McLean

0