From: David Given <dg@cowlark.com>
To: linux-8086@vger.kernel.org
Subject: Re: binary size changes from 0.1.0
Date: Thu, 10 Jun 2004 10:52:50 +0100 [thread overview]
Message-ID: <200406101052.50052.dg@cowlark.com> (raw)
In-Reply-To: <20040610073556.GJ28709@vega.vega.lgb.hu>
On Thursday 10 June 2004 08:35, Gábor Lénárt wrote:
> Also if you check some simple utils, like chmod and others, you will see
> that significant amount of size is error description, I mean textual
> representation of errno codes, as you can get by calling perror() or
> via sys_errlist array. The only problem that almost EACH utility has
> to contain these messages. So, the best soultion would be shared library
> of course but it's hard to implement at once. In my experimental OS
> this was handled in quite "ugly" way: include messages into the kernel,
> and let a syscall query the error message. This is very ugly, but it's
> simple, and avoids each binary contain all of the messages, so it will
> result in less memory usage, and of course smaller disk image ...
One common trick is to not keep the list of error messages in memory at all,
but to keep them in a file on disk. When perror() is called, the file is
opened, read until the right error message is found, and that one used... of
course, this approach means that you can't do sys_errlist, but it's perfectly
adequate for perror.
You may also want to check to see if the optimisation settings have changed.
--
+- David Given --McQ-+ "Est brilgum: toui slimici
| dg@cowlark.com | In uabo tererotitant
| (dg@tao-group.com) | Brogoui sunt macresculi
+- www.cowlark.com --+ Momi rasti strugitant." --- Anonymous
-
To unsubscribe from this list: send the line "unsubscribe linux-8086" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2004-06-10 9:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-09 18:55 binary size changes from 0.1.0 claudio
2004-06-10 7:35 ` Gábor Lénárt
2004-06-10 9:52 ` David Given [this message]
2004-06-10 11:05 ` Gábor Lénárt
2004-06-11 0:52 ` Harry Kalogirou
2004-06-11 14:36 ` claudio
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=200406101052.50052.dg@cowlark.com \
--to=dg@cowlark.com \
--cc=linux-8086@vger.kernel.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