Re: musl and timezones

From: Jorge Almeida <jalmeida_at_math.ist.utl.pt>
Date: Sat, 26 Oct 2013 10:07:46 +0100 (WEST)

On Sat, 26 Oct 2013, Laurent Bercot wrote:

> > The program I was compiling (a CLI wall-clock) is thrice bigger with
> > musl than with diet. Most binaries of your software are *smaller* with
> > musl, a notable exception being s6-mount (almost twice with musl!).
>
> That's probably stdio.
> musl's stdio is scrupulously conformant whereas diet's stdio isn't,
> so musl's is bigger. (It takes a lot of effort, and a lot of code, to
> correctly implement that demented specification.)
> s6-mount uses getmntent() for /etc/fstab parsing, which pulls in the
> FILE structure and likely a good portion of stdio.
>
My program doesn't include the stdio library, and I suppose most of yours
don't either (at least, not directly). Maybe localtime is to blame.
Anyway, I just meant that it is not clear which libc will produce leaner
binaries.

Jorge
Received on Sat Oct 26 2013 - 09:07:46 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC