This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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]

Re: Limited RAM stdio replacement for newlib


Can Finner <can.finner@gmail.com> writes:

> Did you try newlib-nano options?  In case it doesn't fit into your use
> case either, is it possible to improve nano instead?

Yes I did. Even with all of the knobs dialed to minimize memory usage it
still uses many kB of memory, requires malloc and has a fairly deep call
stack. At this point, I'm pretty convinced that there's no reasonable
way to create a stdio that targets good performance in high-capability
environments while offering options that reduce memory usage to near
zero bytes of ram.

The other benefit of this replacement stdio is that it doesn't depend on
any POSIX interfaces like open/close read/write, so the underlying OS
needn't have support for those, only character-at-a-time get and put
functions.

-- 
-keith

Attachment: signature.asc
Description: PGP signature


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