2016-06-17 01:41 AM
Hi guys ,
I'm not sure that my project runs on FPU with free version True Studio. I set it for FPU and Hardware implementation and all other config in my code . But when i debug the project i see that math operations codes are so long in disassembly view. for example; abcd = abcd + 0.1234; this operation's disassembly code is least 25 lines. if i compare same code on Keil, it is 2-3 lines. it must be short that if i use FPU. What is wrong of TS here ?? #fpu #stm32f42016-06-17 03:00 AM
Can't you present the resulting assembler code ?
> abcd = abcd + 0.1234; this operation's disassembly code is least 25 lines.Even if ''
abcd
'' is a float, ''0.1234
'' is not, thus the resulting operation is promoted to double, and cast back to float. Try ''0.1234
f
'' instead.2016-06-17 04:39 AM
it works !!!!!
Thank you AvaTar, when i write '' 0.1234f '' it worked well :*