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.