Search MCUXpresso compilation output for double calculations

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Search MCUXpresso compilation output for double calculations

540件の閲覧回数
aberger
Contributor V

I am trying to optimize the execution speed of some firmware I have written for a K64 MCU. Some of the processing requires floating point arithmetic, and I would like to make sure that I haven't written code that inadvertently requires a double-precision calculation (see tip #3 here: 10 useful tips for using the floating point unit on the Cortex-M4), since this could not make use of the onboard FPU.

Can MCUXpresso generate a compilation notification in case a double precision calculation is used?

0 件の賞賛
1 返信

414件の閲覧回数
jingpan
NXP TechSupport
NXP TechSupport

Hi Andy,

MCUXpresso default use arm-none-eabi-gcc. I found someone has asked this question on the net. Please see c++ - How to disable double-precision math while compiling with GCC or/and IAR? - Stack Overflow 

Thus, you can add the option to properties->C/C++ builder->Settings->Miscellaneous->Other flags

Regards,

Jing

0 件の賞賛