Return to BSD News archive
Path: sserve!manuel.anu.edu.au!munnari.oz.au!spool.mu.edu!uunet!mcsun!Germany.EU.net!unidui!du9ds4!toepfer
From: toepfer@du9ds4.fb9dv.uni-duisburg.de (Hansjoerg Toepfer)
Newsgroups: comp.unix.bsd
Subject: Re: Shared lib benchmarks, and experiences
Date: 9 Dec 92 15:35:31 GMT
Organization: Universitaet Duisburg GH
Lines: 60
Message-ID: <toepfer.723915331@du9ds4>
References: <1992Dec3.071056.27426@ntuix.ntu.ac.sg>
NNTP-Posting-Host: du9ds4.fb9dv.uni-duisburg.de
othman@ntrc25.ntrc.ntu.ac.sg (othman (EEE/Div 4)) writes:
>I've installed Joerg's shared lib with little problem.
>The improvement in code size is significant for small programs but can be
>worse for larger programs such as cc1. cc1 using shared lib is actually
>larger than static lib, but SysV manual warns of this problem.
> There is little hard-disk that I manage to save even after installing
>the compressed man pages.
> At most 20 megabytes. That is too little but then there is still the
>X386 with xview3, which takes up 32Mbyte. No wonder the linux guys refused to
>give me figures for comparison.
> Anyone uses shared-lib for X applications or even server?
>I'll do it later but it will help a lot if someone can share with me their
>experiences.
> However there is some saving in virtual memory size, about 20Kbyte.
>386dx25 no cache, no 387
>Shared lib:
> ld -o dhry1 /usr/lib/crt0_s.o dhry-1.1.o -lc_s -lgnulib
>-rwxr-xr-x 1 root 13744 Dec 2 15:49 dhry1
>maxtor200# dhry1
>Dhrystone(1.1) time for 500000 passes = 106
>This machine benchmarks at 4675 dhrystones/second
>Static lib:
> ld -o dhry1.st /usr/lib/crt0.o dhry-1.1.o -lc -lgnulib
>-rwxr-xr-x 1 root 23361 Dec 2 15:54 dhry1.st
>maxtor200# dhry1.st
>Dhrystone(1.1) time for 500000 passes = 115
>This machine benchmarks at 4805 dhrystones/second
> UID PID PPID CPU PRI NI VSZ RSS WCHAN STAT TT TIME COMMAND
> 0 1904 110 20 33 0 88 0 - R p1 0:30.96 (dhry1)
> 0 1922 110 13 31 0 96 0 - R p1 0:04.59 (dhry1.st)
>--
>Othman bin Ahmad, School of EEE,
>Nanyang Technological University, Singapore 2263.
>Internet Email: eoahmad@ntuix.ntu.ac.sg
I built the following shared libs:
librpc (XView needs this), libXt, libXext, libXmu, libXaw, libolgx libxview.
I ran successfull tests for: olvwm, contool, clock, xv.
The improvement in generated code size is dramatical for X applications.
--------------------------------------------------------------------------------
__ __ _________ Hansjoerg Toepfer Tel.: +49-203-3792583
/ / / / /__ ___/ University of Duisburg FAX : +49-203-370439
/ /_/ / / / FB 9 / DV (Data Processing)
/ __ / / / Bismarckstr. 81
/ / / / / / D-4100 Duisburg 1, Germany
/_/ /_/ /_/ e-mail: toepfer@du9ds4.fb9dv.uni-duisburg.de
--------------------------------------------------------------------------------