printf

Grant Likely grant.likely@secretlab.ca
Sat May 27 18:41:00 GMT 2006


On 5/27/06, Franzi Edo. <edo.franzi@ukos.ch> wrote:
> Hi,
> I would like to implement the "printf" function on my target.
> Accordingly with the documentation I found it seems that it is enough
> to write some low level routine such "fstat, sbrk, istty, ... read,
> write". So, I implement these functions and I can monitor that fstat,
> sbrk and isatty are called during the printf. However, the write is
> never called. Do I have initialise some I/O table or tuffs like this
> to make operational my printf? Any ideas?

This is kind of off-topic for this list, but...

What C library are you using?  Is it using buffered IO?  If so, you
either need to turn off buffering, or call fflush() after printf().

Cheers,
g.

-- 
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195

--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list