Skip to Content.
Sympa Menu

sm-sorcery - Re: [SM-Sorcery]Static base spells

sm-sorcery AT lists.ibiblio.org

Subject: Discussion of Sorcery related topics

List archive

Chronological Thread  
  • From: Jens Laas <jens.laas AT data.slu.se>
  • To: sm-sorcery AT lists.ibiblio.org
  • Subject: Re: [SM-Sorcery]Static base spells
  • Date: Tue, 3 Dec 2002 11:25:49 +0100 (CET)

(02.12.03 kl.09:55) Mark Andrews skrev följande till Dufflebunk:

I've done some work with statically compiling things.

These are my experiences:

1. Glibc is bloatware. (Inefficient code, NLS -- do you really need that?)

2. Which of statically linked and dynamically linked programs use more
memory is a function of program, nr of processes, libc.

3. Remember that dynamically linking a lib forces the _whole_ lib to be
loaded at program execution time. Even if only a fraction is used.

4. Runtime linking takes time. Lower system performance.
Dynamic binaries have all sorts of extra information for performing the
linking. This takes space. Thats why a static binary may very well be
smaller than a dynamic one.

5. Dietlibc is a very good libc replacement for making static binaries.
So far dynamic is, um, experimental.. (static is very solid)

6. The small utilities of basesystem are easliy recompiled when
neccessery (to take advantage of any lib changes).

Btw, checking for static vs dynamin is easily done with 'ldd'.
Installwatch has a configure script that breaks if /bin/sh is static.
(It checks for libc versionumber that way..)

Check out this repository of static-compiled binaries:
ftp://foobar.math.fu-berlin.de:2121/pub/dietlibc/

Homepage of dietlibc:
http://www.fefe.de/dietlibc/

Cheers,
Jens Låås

> Hello Dufflebunk,
>
> Friday, November 29, 2002, 3:41:33 AM, you wrote:
>
> D> There has been a small amount of discussion about making the binaries
> D> that the sorcery scripts depend on static. <-snip-> Are there any other
> D> cons to doing this?
>
> IIRC checkinstall doesn't work with static binaries so a major part of the
> scripts would be broken.
>
> --
> Best regards,
> Mark mailto:msasgl AT msa-enterprises.com
>
> _______________________________________________
> SM-Sorcery mailing list
> SM-Sorcery AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/sm-sorcery
>

-----------------------------------------------------------------------
'This mail automatically becomes portable when carried.'
-----------------------------------------------------------------------
Jens Låås Email: jens.laas AT data.slu.se
Department of Computer Services, SLU Phone: +46 18 67 35 15
Vindbrovägen 1
P.O. Box 7079
S-750 07 Uppsala
SWEDEN
-----------------------------------------------------------------------





Archive powered by MHonArc 2.6.24.

Top of Page