From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-user+bounces-159002-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 7BECB13838B for <garchives@archives.gentoo.org>; Mon, 29 Sep 2014 17:51:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C37C2E0965; Mon, 29 Sep 2014 17:51:18 +0000 (UTC) Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.181]) by pigeon.gentoo.org (Postfix) with ESMTP id B1932E0941 for <gentoo-user@lists.gentoo.org>; Mon, 29 Sep 2014 17:51:17 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqsGAIDvNVNLd/oK/2dsb2JhbABZgwbEB4EXF3SCJQEBAQECATocKAsLGAkTEg8FJTeHcQjSGRePARaDDoEUBI8+iQ+GYYlrgWqDTCE X-IPAS-Result: AqsGAIDvNVNLd/oK/2dsb2JhbABZgwbEB4EXF3SCJQEBAQECATocKAsLGAkTEg8FJTeHcQjSGRePARaDDoEUBI8+iQ+GYYlrgWqDTCE X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="91212855" Received: from 75-119-250-10.dsl.teksavvy.com (HELO waltdnes.org) ([75.119.250.10]) by ironport2-out.teksavvy.com with SMTP; 29 Sep 2014 13:51:15 -0400 Received: by waltdnes.org (sSMTP sendmail emulation); Mon, 29 Sep 2014 13:51:03 -0400 From: "Walter Dnes" <waltdnes@waltdnes.org> Date: Mon, 29 Sep 2014 13:51:03 -0400 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] bloated by gcc Message-ID: <20140929175103.GA9297@waltdnes.org> References: <CAKpSnpJj2mPs6qmOUutRYbtkPi04-+O=h5uruanDHY6bc5RmYA@mail.gmail.com> <20140929111844.GA6716@waltdnes.org> <CAKpSnp+dEm0uaPjB0F=QpMFwJ-rUkBirgJSf=tg4vFvprho6Rg@mail.gmail.com> <20140929151539.GA7944@waltdnes.org> <CAKpSnp+KCmSDqWWM5LucF_E=gZpUqMTL04OMfMCg8O5UguB2uQ@mail.gmail.com> Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <CAKpSnp+KCmSDqWWM5LucF_E=gZpUqMTL04OMfMCg8O5UguB2uQ@mail.gmail.com> User-Agent: Mutt/1.5.22 (2013-10-16) X-Archives-Salt: 71bbda02-abc3-4b42-930a-f904ab6dfedc X-Archives-Hash: 0bcba3c2331054c75b4e7c2d35c32108 On Mon, Sep 29, 2014 at 04:32:40PM +0100, Jorge Almeida wrote > On Mon, Sep 29, 2014 at 4:15 PM, Walter Dnes <waltdnes@waltdnes.org> wrote: > > On Mon, Sep 29, 2014 at 12:45:44PM +0100, Jorge Almeida wrote > > > > > > Grasping at straws now. What are your CFLAGS and full USE flags? I > > suggest running the command... > > > > emerge --info | grep "^\(CFLAGS\|USE\)" > > > > This captures default USE flags that aren't explicitly listed in your > > make.conf. Out of sheer curiusity, what sizes do you get if you use > > "-O2"? I believe that turns off loop-unrolling. > > > No difference with -O2. The program I'm using (as test) is really > simple (a terminal wall clock), although the same problem happens with > other programs. > > Are the USE flags relevant for a program that is orthogonal to emerge? Probably not. > Anyway, here it goes: > > # emerge --info | grep "^\(CFLAGS\|USE\)" > CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer" > USE="berkdb bindist bzip2 cli cracklib crypt cxx dri fortran gdbm gpm > iconv modules ncurses nptl openmp pcre readline session ssl unicode > x86 zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem I was thinking of stuff like "mmx mmxext sse sse2 sse3 ssse3" etc. This might accomplish the same work with fewer bytes of advanced machine language instructions, versus more bytes of standard instructions. -- Walter Dnes <waltdnes@waltdnes.org> I don't run "desktop environments"; I run useful applications