From owner-freebsd-hackers Mon Oct 16 02:05:35 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id CAA01549 for hackers-outgoing; Mon, 16 Oct 1995 02:05:35 -0700 Received: from sequent.kiae.su (sequent.kiae.su [144.206.136.6]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id CAA01537 for ; Mon, 16 Oct 1995 02:05:13 -0700 Received: by sequent.kiae.su id AA29890 (5.65.kiae-2 ); Mon, 16 Oct 1995 12:49:43 +0400 Received: by sequent.KIAE.su (UUMAIL/2.0); Mon, 16 Oct 95 12:49:42 +0300 Received: (from ache@localhost) by ache.dialup.demos.ru (8.6.11/8.6.9) id LAA02062; Mon, 16 Oct 1995 11:42:58 +0300 To: Poul-Henning Kamp Cc: bde@zeta.org.au, hackers@freefall.freebsd.org, j@uriah.heep.sax.de, kaleb@x.org References: <214.813831228@critter.tfs.com> In-Reply-To: <214.813831228@critter.tfs.com>; from Poul-Henning Kamp at Mon, 16 Oct 1995 09:13:48 +0100 Message-Id: Organization: Olahm Ha-Yetzirah Date: Mon, 16 Oct 1995 11:42:58 +0300 (MSK) X-Mailer: Mail/@ [v2.40 FreeBSD] From: =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= (aka Andrey A. Chernov, Black Mage) X-Class: Fast Subject: Re: A couple problems in FreeBSD 2.1.0-950922-SNAP Lines: 43 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Length: 1890 Sender: owner-hackers@FreeBSD.org Precedence: bulk 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. Ok, I'll do described steps by myself. >> 2) We already discuss that bloat on early days and agree >> let it be. >No, we agreed to let it stay in crt0.s until it had been put the right >place. crt0.s is NEVER the right place. I don't think so. >> 3) I don't see proper way to avoid it for statically compiled >> pgms, so I don't understand what we can discuss here. Yes >> it isn't very good. Alternatives? >Put it in the programs that need it. And only there. Do you really plan to convert all system and ports collection by inserting reduced setlocale call there? All ctype programs need it expect few ones which call setlocale by itself. I assume you something write/read with not pure english only. If so you can easily feel advantage of my method when all programs at one time fully understand your native language (ISO_8859-1 fits?). -- 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