Hi all ,
We are using the MSP432E401Y microcontroller in our project . We are facing a issue with Release Build( level 2 optimization is selected ).
In a Function, we are doing some computation.
#define a (19.6)
#define b (0.003)
Lets say Eg : uint16_t var = (uint16_t)((a * b) / 0.005)-1;
Compiler is giving advise : detected floating point oprations. Recommended moving them to RAM during run time or not using as these are processing/power intensive.
in debug build (no optimization) --> works fine
in release build (with level 2 optimization) --> the compiler is not generating any code. While optimization this line is getting removed.
This i can see in disassembly code generated.
Can anyone suggest why it didn't worked after optimization.