Apparently, though unproven, at 00:37 on Saturday 04 December 2010, Grant 
Edwards did opine thusly:

> On 2010-12-03, David W Noon <[email protected]> wrote:
> > What you are seeing is a lot of glibc routines being included by the
> > linkage editor.  These handle all sorts of conditions that will
> > likely never occur in your program.
> > 
> > Try using a smaller C library, like uclibc or klibc.  They might not
> > work as well, but they will give you a smaller executable.
> > 
> > Alternatively, try rewriting your code in assembler.
> 
> For various reasons (which I doubt anybody cares about), gritting my
> teeth and living with the 520K per application looks like a more
> practical solution that either using assembler or a different libc.
> 
> In practice, I'm sure nobody but me will ever even notice (or care
> even if they did notice) the wasted 2MB on a 25MB liveCD.  But it will
> still bug me. :/

That's 8% of your space resources. Many more than just you will notice and 
care and whinge loudly. Probably including me.

It might be worth the effort to switch to a libc designed for the sort of task 
you want to accomplish. I assume you already made the effort with busybox or 
similar, it's much the same viewpoint.


-- 
alan dot mckinnon at gmail dot com

Reply via email to