This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc and vfp instructions
- From: Richard Earnshaw <rearnsha at gcc dot gnu dot org>
- To: aram bharathi <arambharathi at linuxmail dot org>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 01 Apr 2005 18:46:04 +0100
- Subject: Re: gcc and vfp instructions
- Organization: GNU
- References: <20050401170934.9A1DF23CFE@ws5-3.us4.outblaze.com>
On Fri, 2005-04-01 at 18:09, aram bharathi wrote:
> hi
>
> i have downloaded the gcc4.0 from the gcc web site
> and i compiled the above program by the following option
>
> main()
> {
> float a=88.88,b=99.99,c=0;
> c=a*b;
> printf("%f",c);
> }
>
> arm-elf-gcc -mfpu=vfp -S new.c
>
> but it produces the new.s file without any special kind of (vfp
> instructions) instructions.
>
> for example for multiplying a and b they havent used fmuls..
>
> is there any special command line option should b given to produce new.s with fmuls
Yes. You need -mfloat-abi=softfp as well.
R.