delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2014/04/21/09:11:49

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
X-Recipient: djgpp-workers AT delorie DOT com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:in-reply-to:references:date:message-id:subject:from:to
:content-type;
bh=gji7YiNm3YNNGFaQ9KQ6HLSBSt3Qr555LpZg2kEoSno=;
b=TREfUBCU5Q2LK8eG6rtZwyduCzmYtxMlQqBHN9h1rnCiSPc744wO7l9T6tuJHMOxFE
jwgjDwraZxi6b1IacJBLjIlmRXP0KrIuFZm3ELNVN2jhFV8AIEw4dVT3I81HpwoQ6YDD
vpp2AVQBvfbvb1TjaD+vnFHhdXHFPsc2oo7AjtSrcCnFaTJzY+vbzChRAPuJ1NKr+Pv8
U8Ld+TZwCulWsoMqBJ94m8oDldSsKI277yZGv5aQQxjX9OCDcoHx5Inmlmu/LYY17iJi
rJfBzwj1jbK1hUN+ebTmY0cD42kY4ieOjOSvapDzhGuRT2Ghhfn0VCf5OB45qyN8Dh+3
ms6w==
MIME-Version: 1.0
X-Received: by 10.50.66.227 with SMTP id i3mr22017935igt.19.1398085901817;
Mon, 21 Apr 2014 06:11:41 -0700 (PDT)
In-Reply-To: <83mwfedesd.fsf@gnu.org>
References: <CAA2C=vBamXSU9Eh53WTLos=nemZs+uJ09QPF9Y8Jj4OSdZPsyQ AT mail DOT gmail DOT com>
<83vbu3cc6b DOT fsf AT gnu DOT org>
<CAA2C=vB7j86JhFsKTp_Z-+NXM2PT3XKbh7vRqEDt-8RJEo2zpw AT mail DOT gmail DOT com>
<CAA2C=vCm0FgM3K7y3r+fRT_Bz+OpVOUqsivKb_3pGvKf7a-fMg AT mail DOT gmail DOT com>
<83mwfedesd DOT fsf AT gnu DOT org>
Date: Mon, 21 Apr 2014 16:11:41 +0300
Message-ID: <CAA2C=vDye7JTwHdTfRhmWCE2p8YQrb=UgnA1j24H+UX1M0-Q0g@mail.gmail.com>
Subject: Re: ctime.c changes add about 4.5k more size
From: Ozkan Sezer <sezeroz AT gmail DOT com>
To: djgpp-workers AT delorie DOT com
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

--047d7bdc157a8b49d404f78d3d70
Content-Type: text/plain; charset=UTF-8

On 4/21/14, Eli Zaretskii <eliz AT gnu DOT org> wrote:
>> Date: Mon, 21 Apr 2014 15:39:35 +0300
>> From: Ozkan Sezer <sezeroz AT gmail DOT com>
>>
>> FWIW, here is the long diff between versions 1.10 and 1.11 of ctime.c:
>> http://www.delorie.com/bin/cvsweb.cgi/djgpp/src/libc/ansi/time/ctime.c
>> http://www.delorie.com/bin/cvsweb.cgi/djgpp/src/libc/ansi/time/ctime.c.diff?r1=1.10&r2=1.11
>> ... which adds more size to an already long time code.
>
> The question is where do 5KB of extra code come from.  Some changes in
> the diffs are just reshuffling of the same code, others add what
> cannot possibly generate so much more instructions.
>
> One way of finding the potential culprits is to compare the output of
> "nm -A ctime.o" on both versions of compiled ctime.c.  It's possible
> that some static function (those marked with the lower-case "t")
> either grew in size or were added in the new version.
>
> Armed with this knowledge, we might take a good look at those few
> functions, and see if we can do without them, or maybe simplify them.

Extracted ctime.o from old and new libc.a compilations, 13330 bytes
and 17452 bytes, and ran nm on them, attached the output files.

>
> However, in general computing time_t value is a tricky business, so
> it's quite possible the extra code is just some added feature (e.g., I
> see some kind of quoting that is now being supported) or a bugfix, and
> you cannot really do without those, if you want to be able to read the
> latest time-zone files.

Maybe it's best for me to override those functions in my projects
with lite versions without using any timezone info.

--047d7bdc157a8b49d404f78d3d70
Content-Type: application/octet-stream; name="nm1.out"
Content-Disposition: attachment; filename="nm1.out"
Content-Transfer-Encoding: base64
X-Attachment-Id: file0

MDAwMDE5YTAgVCBfYXNjdGltZQowMDAwMTk1MCBUIF9fX2FzY3RpbWVf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X3llYXJfbGVuZ3Ro
cwogICAgICAgICBVIF9fX29wZW4KMDAwMDAwMjAgRCBfX3Bvc2l4cnVsZXNfZGF0YQogICAgICAg
ICBVIF9fX3JlYWQKMDAwMDAxOTAgYiByZXN1bHQuMAowMDAwMDBiMCB0IF9zZXR0em5hbWUKICAg
ICAgICAgVSBfc3ByaW50ZgogICAgICAgICBVIF9zdHJjYXQKICAgICAgICAgVSBfc3RyY3B5CiAg
ICAgICAgIFUgX19fc3RyaWNtcAogICAgICAgICBVIF9zdHJsZW4KICAgICAgICAgVSBfc3RybmNw
eQogICAgICAgICBVIF9zdHJyY2hyCjAwMDAwMDAwIHQgLnRleHQKMDAwMDFlZTAgdCBfdGltZTEK
MDAwMDFjOTAgdCBfdGltZTIKMDAwMDE1MzAgdCBfdGltZXN1YgowMDAwMDE2MCBiIHRtLjMKMDAw
MDAxMzAgYiB0bS43CjAwMDAxYTgwIHQgX3RtY29tcAowMDAwMWFjMCB0IF90bW5vcm1hbGl6ZQow
MDAwMDlmMCB0IF90cmFuc3RpbWUKMDAwMDA1YjQgZCB0emRpcl9ic3NfY291bnQuNgowMDAwMDE2
MCB0IF90emxvYWQKMDAwMDAwMDAgRCBfdHpuYW1lCjAwMDAwYzkwIHQgX3R6cGFyc2UKMDAwMDEy
NDAgVCBfX190enNldAowMDAwMTFmMCBUIF9fX3R6c2V0d2FsbAowMDAwMThlNiB0IHdkYXlfbmFt
ZS4xCjAwMDAwMDA4IGQgX1dJTERBQkJSCjAwMDAwMDYwIHQgX3llYXJfbGVuZ3Rocwo=
--047d7bdc157a8b49d404f78d3d70
Content-Type: application/octet-stream; name="nm2.out"
Content-Disposition: attachment; filename="nm2.out"
Content-Transfer-Encoding: base64
X-Attachment-Id: file0

MDAwMDI1YzAgVCBfYXNjdGltZQowMDAwMjU3MCBUIF9fX2FzY3RpbWVfcgowMDAwMDAwMCBiIC5i
c3MKICAgICAgICAgVSBfX19ic3NfY291bnQKICAgICAgICAgVSBfX19jbG9zZQowM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     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019