Re: [coldfire-gnu-discuss] floating point instructions enabled by default for gcc-4.3-43 on mcf5472 processor?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [coldfire-gnu-discuss] floating point instructions enabled by default for gcc-4.3-43 on mcf5472 processor?
- To: "Wong, Ken" <Ken.Wong@xxxxxxxxxxxxxxxxxxx>
- Subject: Re: [coldfire-gnu-discuss] floating point instructions enabled by default for gcc-4.3-43 on mcf5472 processor?
- From: Maxim Kuvyrkov <maxim@xxxxxxxxxxxxxxxx>
- Date: Fri, 13 Feb 2009 10:28:55 +0300
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