This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc and vfp instructions
- From: "aram bharathi" <arambharathi at linuxmail dot org>
- To: "Richard Earnshaw" <rearnsha at gcc dot gnu dot org>, gcc at gcc dot gnu dot org
- Date: Fri, 01 Apr 2005 23:09:34 +0600
- Subject: Re: gcc and vfp instructions
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
thanks
----- Original Message -----
From: "Richard Earnshaw" <rearnsha@gcc.gnu.org>
To: "aram bharathi" <arambharathi@linuxmail.org>
Subject: Re: gcc and vfp instructions
Date: Tue, 22 Mar 2005 09:52:20 +0000
>
> On Tue, 2005-03-22 at 08:51, aram bharathi wrote:
> > hi,
> > i like to know whether gcc can generate vfp instructions..
> >
> > main()
> > {
> > float a=88.88,b=99.99,c=0;
> > c=a+b;
> > printf("%f",c);
> > }
> >
> > i used the following option to compile the above program
> >
> > arm-elf-gcc -mfp=2 -S new.c
> >
> > but it produces the new.s file without any special kind of (vfp
> > instructions) instructions
> > how to generate them using gcc
> >
> > or i have to use inline assembly for this operation for this
> >
> > if then, whether it will be supported on binutils and the gdb simulator
> >
> > thanks
>
> gcc-4.0 will be the first FSF release to have VFP support. CodeSourcery
> have a build of gcc-3.4 on their web site which has VFP support
> included. The options needed to generate the VFP code are described in
> the manual.
>
> R.
--
______________________________________________
Check out the latest SMS services @ http://www.linuxmail.org
This allows you to send and receive SMS through your mailbox.
Powered by Outblaze