This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430FG479: Execution time increase when using the latest CCS compiler

Part Number: MSP430FG479

I am modifying firmware that was developed on CCS using compiler version 3.1.1. I was able to successfully compile the code using version 21.6 of the compiler but noticed a significant increase in execution time. The main loop of the program takes around 10 times longer to execute (10ms vs 107ms). I have tracked down the majority of the increase to two functions which do float and double math. As far as I can tell the compile options are set the same when switching between compiler versions. I tried optimizing for speed but there was no noticeable change in speed when this was done. 

  • Hello Martin,

    You are doing a very large jump of compiler versions here, so I would expect changes in your code performance. Biases of how the compiler optimizes for performance/size will most likely have shifted over the years of updates as well. In general, it's not recommended to utilize floats and doubles with MSP430 devices, as they do not natively support these data types with the core. As such a simple ADD of a float could take 5x the instructions than a simple int. We do have a fixed point library available that could help you in the types of maths you are performing. Check out the IQMATH library

**Attention** This is a public forum