gcc-3.3.3 and softfloat?

Steven Scholz steven.scholz@imc-berlin.de
Fri Dec 3 13:20:00 GMT 2004


Marius Groeger wrote:

> ... 
> This configuration should default to always use soft float. You can verify
> this by checking the preprocessor macros. My cross gcc (which _is_not_
> configured for soft-float) gives this output:
> 
>   $ touch x.c
>   $ arm_v4le-gcc -E -dM -msoft-float x.c  | grep -i fp
>   #define _SOFT_FLOAT 1
>   $ arm_v4le-gcc -E -dM x.c  | grep -i fp
>   $
> 
> You compiler should always throw _SOFT_FLOAT. To be 100% certain
> you should take a look at the assembly using objdump.

It does not!

$ arm-softfloat-linux-gnu-gcc -E -dM -msoft-float x.c | grep -i fp
#define __SOFTFP__ 1
$> arm-softfloat-linux-gnu-gcc -E -dM x.c | grep -i fp
$

So it does _not_ softfloat by default, and I have to use -msoft-float when 
building my application, right?

--
Steven

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list