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: Tue, 22 Mar 2005 09:52:20 +0000
- Subject: Re: gcc and vfp instructions
- Organization: GNU
- References: <20050322085147.E0683416118@ws5-2.us4.outblaze.com>
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.