[linux-elitists] HTML in e-mail

Tim Hammerquist tim+linux-elitists@vegeta.ath.cx
Fri Aug 22 01:00:43 PDT 2003


Aaron Lehmann wrote:
> Thu, Aug 21, 2003 at 06:25:28PM -0700, Tim Hammerquist wrote:
> > The DOS one wasn't dynamic.  Let's try this again:
> > 
> >     % gcc -static -o test test.c
> >     % ls -l test
> >     -rwxr-xr-x    1 user     users      420580 2003-08-21 17:47 test
> > 
> > That's more like it.  Still a big jump from 50k, but for over 10
> > years, that's acceptable to me.
> 
> I liked your post until it got to this, which is an awful
> example.  Size of static binaries is not something that glibc
> is good about compared to proprietary systems.

My apologies.  I have never been properly introduced to the
Linux/GCC compiler environment, having taught myself by applying
my Borland C knowledge to what I learned from Makefiles and
manpages.  As such, I certainly wouldn't have claimed my
benchmarks were definitive.

> $ uname -a
> Linux endquote 2.6.0-test2 #8 Wed Aug 6 22:02:31 PDT 2003 i686 GNU/Linux

Linux vegeta 2.4.21 #2 SMP Thu Aug 14 22:36:00 PDT 2003 i686 GNU/Linux

[ snipped dietlibc examples ]

Using the dietlibc libraries I got result comparable (+/- 100B)
results.

> FreeBSD 4.8-RELEASE (TROPEZ) #0: Mon Apr  7 22:26:43 PDT 2003

On this system I got comparable results, thought the 5.x systems
make significantly larger executables:

FreeBSD FreeBSD 5.1-RELEASE #2: Fri Aug 15 01:02:32 PDT 2003

% gcc -static -o test test.c
% ls -l test
-rwxr-xr-x  1 tim  tim  71045 Aug 22 00:48 test
% strip test
% ls -l test
-rwxr-xr-x  1 tim  tim  61720 Aug 22 00:48 test

I don't have my SuperSPARC/OpenBSD box up today or I'd include
those results.

IAC, thanks for the tips.  I had meant to do some comparative
compiling but I was overdue for dinner. :)

Tim Hammerquist
-- 
Your question doesn't make any sense. You might as well ask
whether it is possible to grow vegetables from a painting,
without becoming Wednesday first.
    -- Abigail, comp.lang.perl.misc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://allium.zgp.org/pipermail/linux-elitists/attachments/20030822/b1c8a615/attachment.pgp 


More information about the linux-elitists mailing list