[coldfire-gnu-discuss] floating point instructions enabled by default for gcc-4.3-43 on mcf5472 processor?

Maxim Kuvyrkov maxim at codesourcery.com
Fri Feb 13 07:28:55 UTC 2009


Wong, Ken wrote:
> I was wondering if anyone could tell me an easy way of determining 
> whether or not code generated using the gcc-4.3-43 toolchain is 
> generating hardware floating point instructions…
> 
>  
> 
> I’m pretty sure it is, and I think I can go through the objdump of my 
> code but being able to draw up a list of defaults that the compiler is 
> using would be great.

It depends on -mcpu= setting: if selected CPU has FPU unit (which, I 
believe, at the moment are only devices from 547x/548x family) then FP 
instructions can be generated.

There is also option -msoft-float that unconditionally turns off use of 
FP instructions.

--
Maxim




More information about the coldfire-gnu-discuss mailing list