This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc and vfp instructions


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]