Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Oct 1995 14:46:56 +0300 (MSK)
From:      =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= (aka Andrey A. Chernov, Black Mage) <ache@astral.msk.su>
To:        Poul-Henning Kamp <phk@critter.tfs.com>
Cc:        bde@zeta.org.au, hackers@freefall.freebsd.org, j@uriah.heep.sax.de, kaleb@x.org
Subject:   Re: A couple problems in FreeBSD 2.1.0-950922-SNAP
Message-ID:  <TkmOaWmuKL@ache.dialup.demos.ru>
In-Reply-To: <413.813840749@critter.tfs.com>; from Poul-Henning Kamp at Mon, 16 Oct 1995 11:52:29 %2B0100
References:  <413.813840749@critter.tfs.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In message <413.813840749@critter.tfs.com> Poul-Henning Kamp writes:

>> In message <214.813831228@critter.tfs.com> Poul-Henning Kamp writes:
>> 
>> >> >Yes, bloat is added even when ENABLE_STARTUP_LOCALE isn't set.  Bloat is
>> >> >added even when no ctype function is called (this is normal for most
>> >> >programs in /bin and /sbin - grep shows "ctype.h" in only 25 out of 80
>> >> >programs in /usr/src/[s]bin.
>> >> 
>> >> It isn't accurate results. Many libc functions calls ctype
>> >> indirecly, i.e. strtol, atoi, etc. You additionly need
>> >> to grep ctype through libc and then grep function you got
>> >> through bin/sbin. I suspect that 100% of programs use ctype
>> >> for accurate results.
>> 
>> >Andrey, you have to realize that Bruce reported precise numbers, whereas
>> >you just "suspect".  Please prove you point, and provide hard numbers.
>> 
>> Well, here more accurate results.
>> 
>> I build/install special crt0.o version which not calls reduced_setlocale()
>> bloat.
>> Then I rebuild bin/sbin. Then I use following csh script to find ones
>> which not use ctype at all:

>Did you rebuild static or dynamic ?  I will only belive numbers from a 
>static rebuild...

I rebuild as default, i.e. static. You can repeat it by yourself,
just comment out two lines into crt0.c and use my script after
rebuild. Why you even assume that I can rebuild them as dynamic?
Dynamic variant don't cause such bloat, so nobody count it.

BTW, I don't give any 'numbers' here, I only prove that all our
static programs _use_ ctype, so they needs _right_ ctype, i.e.
my hack.

-- 
Andrey A. Chernov        : And I rest so composedly,  /Now, in my bed,
ache@astral.msk.su       : That any beholder  /Might fancy me dead -
FidoNet: 2:5020/230.3    : Might start at beholding me,  /Thinking me dead.
RELCOM Team,FreeBSD Team :         E.A.Poe         From "For Annie" 1849



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?TkmOaWmuKL>