From owner-freebsd-questions@FreeBSD.ORG Fri Mar 12 03:53:43 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D19E516A4CE for ; Fri, 12 Mar 2004 03:53:43 -0800 (PST) Received: from mail.whitecats.mine.nu (unknown [81.61.184.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 669AC43D1D for ; Fri, 12 Mar 2004 03:53:43 -0800 (PST) (envelope-from manu@whitecats.mine.nu) Received: by mail.whitecats.mine.nu (Postfix, from userid 1001) id D923714AA8; Fri, 12 Mar 2004 12:56:38 +0100 (CET) Date: Fri, 12 Mar 2004 12:56:38 +0100 From: Manuel Hernandez To: List FreeBSD Questions Message-ID: <20040312115638.GA522@whitecats.mine.nu> Mail-Followup-To: List FreeBSD Questions References: <101C5248-740D-11D8-B665-000A95B9AE7E@borg-cube.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <101C5248-740D-11D8-B665-000A95B9AE7E@borg-cube.com> User-Agent: Mutt/1.4.2.1i Subject: Re: How much difference does 'gcc -O' make? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Mar 2004 11:53:44 -0000 On Fri, Mar 12, 2004 at 02:07:26AM -0800, Donald Burr wrote: > A question occurred to me today. How much difference does 'gcc -O' > make in the speed of my system? > > I notice some ports that claim to not work properly if compiled with > -O (the one that comes to mind right away is XFree86 4.x, but I've > seen others) and I am thinking of just turning OFF -O option in my > /etc/make.conf. I'm just wondering how much of an impact this will > have on system performance. Hi Donald! I'm a newbie, only two months with my FBSD 4.9-RELEASE. I have this on my /etc/make.conf: CPUTYPE=p4 CFLAGS= -O -pipe And everything works fine (I have compiled all the system, kernel, ports, etc) My box is a Intel P4 with HTT enabled, 1024M 333DDR RAM. I asked about that in freenode (IRC) and these were the settings that they tell me. My box is a workstation + mail server + web server. Excuse my horrible English :-) Regards Manuel