AnsweredAssumed Answered

FPU

Question asked by obid.matic on Oct 8, 2015
Latest reply on Oct 9, 2015 by Bassett.David
Hi.

I am developing product, which should be small and fast as possible at the same time. Usually, I use parts which are in 48 pin QFPN or LQFP packages. Till now, I used F1 parts, but recently I went to F3. On F1 I did all calculations with integers only, because F1 doesn't have FPU and calculations with floats were too slow. Now, F3 parts also have FPU and I would like to ask a few questions.

First, how comparable is float calculation (with FPU enabled) with integer calculation in terms of speed?

Do you always use FPU and floats, even if speed is important for your application?

How could I enable FPU in Keil?

Is it possible to write FPU instructions in C or is it necessary to use assembly?

Thanks

Outcomes