OpenCores

printf function run not correct

Back to bugtracker overview.

Information:
Type :: BUG
Status :: OPENED
Assigned to :: nobody

Description:
when I use the following test program?I find "printf("c=%d\n",c);" can run correct and printf "c=3",but "printf("Hello world!\n");" not printf the result "hello world":

char a,b;
char c;
a = 1;
b = 2;
c = a+b;
printf("c=%d\n",c);//this have a problem
printf("Hello world!\n");
==============================================================================
when I delete "printf("c=%d\n",c);",printf result is correct and printf the hello word

char a,b;
char c;
a = 1;
b = 2;
c = a+b;
//printf("c=%d\n",c);//this have a problem
printf("Hello world!\n");

SO i think the printf function have some problem?????

Comments:

Embedded, Ultra Jun 21, 2012
Please attach the program disassembly (output of mips-elf-objdump -S yourprogram.elf).
guohua, liu Jun 19, 2012
the author can you spend some time to solve the problem

thanks

Post a comment:
Login to post comments!

Back to bugtracker overview.

© copyright 1999-2019 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.