I would like to use the fpu on stm32f4 Discovery board, to do that I have to set (USE_FPU = yes) in the makefile and that's all?
so whether I write: float x = 2.0f * 5.0f; this will be calculated with fpu?
I noticed these two rows in the bottom of makefile:
Code: Select all
ifeq ($(USE_FPU),yes)
USE_OPT += -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -fsingle-precision-constant
DDEFS += -DCORTEX_USE_FPU=TRUE
It means that FPU is in fact a software fpu? if is true, how can i use hardware fpu? -mfloat-abi=hard?
I'm confused... sorry
Thank you in advance
PS: ( I use gcc with -lm on ubuntu )