This is the mail archive of the gcc-help@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]

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


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