On Mon, Sep 29, 2014 at 5:35 PM, Daniel Troeder <dan...@admin-box.com> wrote:
> Am 28.09.2014 um 10:44 schrieb Jorge Almeida:
>> I'm having a somewhat disgusting issue on my Gentoo: binaries are
>> unaccountably large.


>>
>> Jorge Almeida
>>
> Hi :)


Hi, thanks for replying.
>
> I have compared some exes and libs from Ubuntu 14.04 and my Gentoo (both
> x86_64) and for similar versions it seems like most of _my_ Gentoo
> binaries are around 10% bigger (a few are 10% smaller). I have
> completely ignored GCC settings (both are 4.8.x though). IMO your sample
> (one 5-10 kb program) is not representative for the distro in general.

Actually, I didn't even thought of comparing sizes of the distros
binaries (the ones that are produced by emerging). My programs were
first compiled against dietlibc (where I noticed the size difference),
so they do not depend on USE variables nor CFLAGS. And glibc is not
the culprit. Maybe gcc, unless it is binutils, or who knows...
But if bash etc is bigger than in other distros (or not), that's fine
by me, the devs sure know better than I.

>

>
> IMO you shouldn't compare 4.8.x with 4.9.x.

My atom (Slackware) has gcc 4.8.2, Gentoo had 4.7.3. I emerged 4.8.3
(~x86) because with 4.7.3 it was even worse!

>
> I don't want to dismiss your concern with your specific program. In your
> case it is a big difference, and I'm curios too, where it comes from.
>
> Maybe you can find out more by a more thorough comparation of the flags
> GCC uses at runtime by comparing the output of:
>
> gcc -Q <your flags (w/o -pipe)> --help=target
> gcc -Q <your flags (w/o -pipe)> --help=optimizers
>

Thanks for the suggestion. I'll look at it carefully.

Jorge

Reply via email to