Re: printf issue

2011-05-04 Thread Jonathan Wakely
On 4 May 2011 07:12, Fan Chongbin-B32609 wrote: > > In the main.c file , I used printf("%f",1.0f); to print a float number but > the output is 0.. > Can anybody help me to figure that out, pls? This is the wrong mailing list for questions about using gcc, and you should not cross-post to gcc

printf issue

2011-05-03 Thread Fan Chongbin-B32609
Hi, My image was built with arm-none-eabi-xxx tool chain(2008-q3). And the compile options as follow. FCFLAG = -msoft-float -mfloat-abi=soft -mno-apcs-float FAFLAG = -msoft-float -mfloat-abi=soft CFLAG = -mcpu=cortex-a8 $(FCFLAG) -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -mapcs