Dear All,
I am using MSP430F5309 controller with CCS v5 and IAR MSP430(evaluation version). I have some floating point multiplications and divisions in my code. Just 2 or 3 lines of float arithmetic is consuming up to 1 kB of code memory. I just want to optimize it to minimum possible code size. I have ample flash but I want to learn optimization techniques.
My code is somewhat like this
float f = (float)a * (float)b;
float f = (float)a / (float)b;
where a and b are unigned integers.
So, any suggestions on using the hardware multiplier(for 32-bit float mul and div) or any other techniques,
I am more looking at the tried and tested implementations.
Thank you in advance
Chaithra