On 19 April 2016 at 16:50, Maarten Brock <sourceforge.br...@dse.nl> wrote:
> What kind of 'functions' are you talking about here? SDCC uses functions > even for 'normal' operations like multiplication and addition at runtime. > I would expect these to be optimised out, but not the functions from e.g. > math.h. > > float a = 12.0f * 0.123f; // hopefully optimized > float b = sinf(3.14f); // unlikely to be optimized > > Maarten #define THERMISTOR_BETA 3380 #define THERMISTOR_R0 10000 #define THERMISTOR_T0 (298.15) #define Rinf (THERMISTOR_R0*pow(2.718,(-1*(THERMISTOR_BETA/THERMISTOR_T0)))) With Cosmic compiler, any reference to Rinf pulls a large chunk of math library into the executable. I haven't yet checked with SDCC. ------------------------------------------------------------------------------ Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user