[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnu-arch-users] libarch and version string (was Re: libtla, version
Re: [Gnu-arch-users] libarch and version string (was Re: libtla, version_string)
Tue, 31 Aug 2004 13:27:27 +1000
On Mon, 2004-08-30 at 21:36 +0200, Yann Droneaud wrote:
> Andrew Suffield <address@hidden> writes:
> > On Mon, Aug 30, 2004 at 08:10:56PM +0200, Yann Droneaud wrote:
> >> I found that the 'version_string' is duplicated accross almost every
> >> source files correspondig to a command.
> >> $ find tla-1.3/src/tla/libarch/ -name 'cmd*.c' | wc -l
> >> 100
> >> $ strings /home/meuh/bin/tla | grep -c 'from regexps\.com'
> >> 97
> >> $ grep 'char.*version_string' tla-1.3/src/tla/libarch/* | wc -l
> >> 97
> >> This is many bytes wasted in the binary to store redundant information,
> >> so we could add a version.c file holding only one defintion of the
> >> version string.
> > Get a linker that does not suck. Like the one from current binutils.
> > address@hidden:~$ strings /usr/bin/tla | grep -c 'from regexps\.com'
> > 5
> If not shrinking the binary, removing all the version strings
> will speedup compilation and link time, reduce the source code size, and
> no more disturb me wondering why there's so many different version
neither the linker, nor compilation speed & source size bother me. Doing
the same thing twice though... that bothers me :}.
Description: This is a digitally signed message part