printf issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux