From owner-freebsd-current Thu Sep 23 11:58:31 1999 Delivered-To: freebsd-current@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 541FC15068 for ; Thu, 23 Sep 1999 11:58:29 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id NAA25120; Thu, 23 Sep 1999 13:57:47 -0500 (CDT) (envelope-from dan) Date: Thu, 23 Sep 1999 13:57:47 -0500 From: Dan Nelson To: bsd@picard.mandrakesoft.de Cc: Matthew Dillon , The Hermit Hacker , freebsd-current@FreeBSD.ORG Subject: Re: gcc optimizer in -current system ... Message-ID: <19990923135747.A24995@dan.emsphone.com> References: <199909231803.LAA28917@apollo.backplane.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: X-OS: FreeBSD 4.0-CURRENT Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Sep 23), bsd@picard.mandrakesoft.de said: > On Thu, 23 Sep 1999, Matthew Dillon wrote: > > I tend not to like the higher optimization levels because they > > cause the compiler to attempt to turn static functions into inlines > > and, in my opinion, it doesn't do a very good job of selecting > > which functions to convert. The result is that I see bloated > > binaries with no performance gain to show for it. > > > > EGCS's -Os is my favorite. > > Have you tried specifying -O6 and -Os (With -Os following -O6 because > we want it to override the values set by -O6)? I haven't tried it for > a while, but at least in an older egcs snapshot (somewhere between > 1.1.2 and gcc 2.95), it worked (optimize as much as possible, but > value size over speed). Order doesn't matter, since -Os is more like an optimization flag then a level (should really have been called -foptimize-size IMHO). It doesn't disable/enable anything else apart from forcing the minimum O level to 2. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message