This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
printf issue
- From: Fan Chongbin-B32609 <B32609 at freescale dot com>
- To: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Wed, 4 May 2011 06:13:31 +0000
- Subject: printf issue
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 -g -O0 -ffunction-sections -fdata-sections -fno-exceptions -I.
AFLAG = -mcpu=cortex-a8 $(FAFLAG) -Wall -Wundef -mapcs -g -O0 -I. -lc -nostartfiles -T src/mx53_iram.ld
In the main.c file , I used printf("%f",1.0f); to print a float number but the output is 0.0000.
Can anybody help me to figure that out, pls?
BR
Jerry