Frans Meulenbroeks wrote:
> Hm. I thought about open/close too. Triggered by your comments I wrote
> a small test app.
> If I use fopen/fclose and in a while loop do:
>             fputc('0', fp);
>             fputc('1', fp);
> I get a wave with period  1.96 uS.
> If I move to open/close with a while loop like:
>             write(fd, "0", 1);
>             write(fd, "1", 1);
> the period reduces to 1.53 uS.
> Same hw (1.2 ghz ppc)
> 
> So write is substantially faster than fputc.
> I strongly suggest to move back to low level I/O (open/write/close)

Frans,

I think we have to wait for a response by Mike - he suggested to switch
to stream functions, as they are more portable.

Stefano

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: [email protected]
=====================================================================

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
UrJTAG-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/urjtag-development

Reply via email to