From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: How to build a static application binary?
Date: Sat, 4 Dec 2010 01:34:24 +0200 [thread overview]
Message-ID: <201012040134.24730.alan.mckinnon@gmail.com> (raw)
In-Reply-To: <idbrel$nvt$2@dough.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 1283 bytes --]
Apparently, though unproven, at 00:37 on Saturday 04 December 2010, Grant
Edwards did opine thusly:
> On 2010-12-03, David W Noon <dwnoon@ntlworld.com> 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
[-- Attachment #2: Type: text/html, Size: 5628 bytes --]
next prev parent reply other threads:[~2010-12-04 0:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <fVtfY-2Jt-7@gated-at.bofh.it>
2010-12-03 17:00 ` [gentoo-user] How to build a static application binary? David W Noon
2010-12-03 22:37 ` [gentoo-user] " Grant Edwards
2010-12-03 23:34 ` Alan McKinnon [this message]
2010-12-04 5:25 ` Grant Edwards
2010-12-03 1:23 [gentoo-user] " Grant Edwards
2010-12-03 4:48 ` Jacob Todd
2010-12-03 15:27 ` [gentoo-user] " Grant Edwards
2010-12-03 16:53 ` Jacob Todd
2010-12-03 22:32 ` Grant Edwards
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201012040134.24730.alan.mckinnon@gmail.com \
--to=alan.mckinnon@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox