This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


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

RE: Newlib 1.8.1 vfprintf problem on embedded PowerPC



On 24-Jun-99 Roger Williams wrote:
>  While waiting for my s/w guru to develop application code, I'm writing
>  hardware debug utilities for my embedded MPC860 hardware.  With the
>  help of the CrossGCC FAQ, it was a simple matter to build GCC 2.8.1
>  and Newlib 1.8.1 and get a simple "Hello, world" program running.
>  
>  Most of the libc functions, including sscanf, etc., work fine.
>  However, any call to vfprintf goes off to Never-Never Land, so sprintf
>  doesn't work.
>  
>  Any ideas about where to start looking?  The printf innards are rather
>  hairy...  (Unfortunately, I don't have access to an ICD right now, so
>  my job is even tougher.)

Do you have a working sbrk() and a heap set up?  The first call to vfprintf
mallocs a buffer to work with.

-- 
Mark Powell, Senior Software Engineer, Primagraphics Limited
New Cambridge House, Litlington, nr.Royston, Herts, SG8 0SS, UK
Tel. +44 1763 852222, Fax. 853324, medp@primag.co.uk, http://www.primag.co.uk

_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.

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