From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/8790 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Results of Aboriginal/musl CFLAGS experiment Date: Mon, 26 Oct 2015 21:29:03 -0400 Message-ID: <20151027012903.GS8645@brightrain.aerifal.cx> References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1445909362 10004 80.91.229.3 (27 Oct 2015 01:29:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Oct 2015 01:29:22 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-8803-gllmg-musl=m.gmane.org@lists.openwall.com Tue Oct 27 02:29:21 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Zqt4g-0006xn-OZ for gllmg-musl@m.gmane.org; Tue, 27 Oct 2015 02:29:18 +0100 Original-Received: (qmail 19968 invoked by uid 550); 27 Oct 2015 01:29:16 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 19950 invoked from network); 27 Oct 2015 01:29:16 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:8790 Archived-At: On Fri, Oct 23, 2015 at 09:35:39AM +0200, Denys Vlasenko wrote: > Step 3: add "-falign-jumps=1 -falign-labels=1" > Step 4: add "-falign-functions=1 -falign-loops=1" > > Not particularly interesting - they do reduce size of every program I measured, > but some (many?) people would prefer to leave it to gcc to decide when > and how align code, for speed reasons. Anyway, here are stats: We had these a long time ago, but I removed them in commit a80847d86a8865a78fdbebe7f9e2533f7a74e010 because I thought they were the default at -Os and only relevant to debloating -O3. However I've heard some suggestions that -Os is no longer worthwhile and that -O2 with overrides to turn off the useless/harmful alignment would be a better default. Do you have any input on this topic? Rich