This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: stdio vs. diag_printf
- To: Jonathan Larmour <jlarmour at redhat dot co dot uk>
- Subject: Re: [ECOS] stdio vs. diag_printf
- From: Grant Edwards <grante at visi dot com>
- Date: Wed, 12 Jul 2000 21:55:26 -0500
- Cc: ecos-discuss at sourceware dot cygnus dot com
- References: <20000710215950.A3513@visi.com> <396D0115.15AFF307@redhat.co.uk>
On Thu, Jul 13, 2000 at 12:36:54AM +0100, Jonathan Larmour wrote:
> > IOW, does diag_printf require the stdio package? If not, I
> > think this would, in turn, allow me to get rid of malloc() and
> > its associated heap and posssibly some other stuff.
>
> Out of interest, there is configury inside the libc package to remove the
> overhead of using malloc, and other bloating things like floating-point
> support in printf.
I had found the floating point stuff and disabled that. IIRC it was
somewhere between 10 and 20KB.
> In saying that, diag_printf will still always be much smaller as it doesn't
> have to support the zillion other things that printf has to as part of the
> standards baggage.
I had presumed so -- I also don't really want the buffering that goes along
with the stdio package.
--
Grant Edwards
grante@visi.com