Date: Mon, 15 Jul 2002 17:18:36 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: Jud <jud@myrealbox.com> Cc: "Craig Williamson (ENZ)" <craig.williamson@ericsson.co.nz>, Matthew Seaman <m.seaman@infracaninophile.co.uk>, "'freebsd-questions@freebsd.org'" <freebsd-questions@FreeBSD.ORG> Subject: Re: FreeBSD with GCC3.1 Message-ID: <20020715221836.GA23294@dan.emsphone.com> In-Reply-To: <NNJ94ZVC7ZYYXHE52XRPA0ICGICD9.3d32a069@sparky> References: <20020714232749.GB28440@happy-idiot-talk.infracaninophi> <NNJ94ZVC7ZYYXHE52XRPA0ICGICD9.3d32a069@sparky>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020715221836.GA23294>
