From owner-freebsd-questions Mon Jul 15 15:18:43 2002 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 96D1737B400 for ; Mon, 15 Jul 2002 15:18:40 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0CC3043E4A for ; Mon, 15 Jul 2002 15:18:40 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.5/8.12.5) id g6FMIapQ040111; Mon, 15 Jul 2002 17:18:36 -0500 (CDT) (envelope-from dan) Date: Mon, 15 Jul 2002 17:18:36 -0500 From: Dan Nelson To: Jud Cc: "Craig Williamson (ENZ)" , Matthew Seaman , "'freebsd-questions@freebsd.org'" Subject: Re: FreeBSD with GCC3.1 Message-ID: <20020715221836.GA23294@dan.emsphone.com> References: <20020714232749.GB28440@happy-idiot-talk.infracaninophi> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In the last episode (Jul 15), Jud said: > Matt Dillon (I think it was in the -current mailing list) mentioned > that using gcc-3.1 seemed to cause high CPU usage during compile and > no improvement or some degradation in performance, if I remember what > he said correctly. gcc3 might be more dependant on cpu flags the earlier versions; I have verified that ports/archivers/zip runs about 3% faster with match.c compiled with gcc -O than with the included assembler match.S (!!!!), and 16% faster with match compiled with gcc -O2 -march=pentium3. This is on current, so gcc=3.1. Also note that our bsd.cpu.mk on -current does not yet know about the -march=pentium[234] flags. Index: bsd.cpu.mk =================================================================== RCS file: /home/ncvs/src/share/mk/bsd.cpu.mk,v retrieving revision 1.12 diff -u -r1.12 bsd.cpu.mk --- bsd.cpu.mk 13 Jun 2002 08:35:36 -0000 1.12 +++ bsd.cpu.mk 3 Jul 2002 19:18:25 -0000 @@ -49,11 +49,11 @@ . elif ${CPUTYPE} == "k5" _CPUCFLAGS = -march=pentium . elif ${CPUTYPE} == "p4" -_CPUCFLAGS = -march=pentiumpro +_CPUCFLAGS = -march=pentium4 . elif ${CPUTYPE} == "p3" -_CPUCFLAGS = -march=pentiumpro +_CPUCFLAGS = -march=pentium3 . elif ${CPUTYPE} == "p2" -_CPUCFLAGS = -march=pentiumpro +_CPUCFLAGS = -march=pentium2 . elif ${CPUTYPE} == "i686" _CPUCFLAGS = -march=pentiumpro . elif ${CPUTYPE} == "i586/mmx" -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message