From owner-freebsd-questions@FreeBSD.ORG Mon Oct 4 18:58:22 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 AAC2C16A4CE for ; Mon, 4 Oct 2004 18:58:22 +0000 (GMT) Received: from mailhub.sweetdreamsracing.biz (mailhub.sweetdreamsracing.biz [66.92.171.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6491043D46 for ; Mon, 4 Oct 2004 18:58:22 +0000 (GMT) (envelope-from culverk@sweetdreamsracing.biz) Received: by mailhub.sweetdreamsracing.biz (Postfix, from userid 80) id 75AC561C8; Mon, 4 Oct 2004 14:55:46 -0400 (EDT) Received: from 141.156.69.109 ([141.156.69.109]) by www.sweetdreamsracing.biz (Horde) with HTTP for ; Mon, 4 Oct 2004 14:55:45 -0400 Message-ID: <20041004145545.zcoccwc4cksgocow@www.sweetdreamsracing.biz> Date: Mon, 4 Oct 2004 14:55:45 -0400 From: Kenneth Culver To: regi@inf.ufrgs.br References: <1096915733.41619b153c86a@webmail.inf.ufrgs.br> In-Reply-To: <1096915733.41619b153c86a@webmail.inf.ufrgs.br> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) 4.0-cvs cc: questions@FreeBSD.org Subject: Re: C compiler 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: Mon, 04 Oct 2004 18:58:22 -0000 Quoting regi@inf.ufrgs.br: > Hello, > > I=B4ve installed FreeBSD 5.2.1 in my PC machine. I compiled my own > programs and started to running them. For my surprise, I checked that > FreeBSD programs spent almost 50% more time than the same program compiled > to linux. I checked several compile options, but it did not have good=20 > results. > > The compiler in my FreeBSD is gcc3.3.3. Are there someone that could > help me ?? > > Thanks, > Regi > > > I would like > There are a lot of things that could be happening, and I doubt that the gcc version has anything to do with this. 1) did you recompile your kernel without debugging options? I don't=20 know if the default kernel comes with them turned off. Also, your malloc.conf may not be set up for speed (may have debugging options still). 2) You may want to try a later version of FreeBSD, for example... wait for 5= .3 to come out. I'm using 5.3-BETA6 right now, and without doing any testing to get actual numbers, it "feels" a lot faster. Ken