From owner-freebsd-questions Thu Mar 7 7:16:15 2002 Delivered-To: freebsd-questions@freebsd.org Received: from oxe.cs.umu.se (oxe.cs.umu.se [130.239.40.14]) by hub.freebsd.org (Postfix) with ESMTP id 88A7037B8F9 for ; Thu, 7 Mar 2002 07:13:31 -0800 (PST) Received: from bark (rfc1413 says tdv94ped@bark.cs.umu.se [130.239.40.185]) by oxe.cs.umu.se (8.8.8/8.8.8) with ESMTP id QAA02631; Thu, 7 Mar 2002 16:12:15 +0100 (MET) Date: Thu, 7 Mar 2002 16:12:15 +0100 (MET) From: Paul Everlund To: "Brian T.Schellenberger" Cc: Peter Leftwich , Justin L Boss , FreeBSD-Questions Subject: Re: Performance 686 - 386 In-Reply-To: <20020307133726.503DDBB26@i8k.babbleon.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Thu, 7 Mar 2002, Brian T.Schellenberger wrote: > On Thursday 07 March 2002 01:16 am, Peter Leftwich wrote: > | In my /etc/defaults/make.conf file, the line for CPUTYPE is commented out. > | > | # Currently the following CPU types are recognised: > | # Intel x86 architecture: > | # (AMD CPUs) k7 k6-2 k6 k5 > | # (Intel CPUs) p4 p3 p2 i686 i586/mmx i586 i486 i386 > | # Alpha/AXP architecture: ev6 pca56 ev56 ev5 ev45 ev4 > | # [snip]compiled with processor-specific (or higher - see below) > | optimization flags. # If in doubt, do not set CPUTYPE or CFLAGS to > | non-default values. #CPUTYPE=i686 > | #NO_CPU_CFLAGS= true # Don't add -march= to CFLAGS automatically > | #NO_CPU_COPTFLAGS=true # Don't add -march= to COPTFLAGS automatically > | > | Does this matter? Or is this option/parameter obtained from the current > | kernel or something...? > > No, it means that the option is defaulting to the "default default" (to 486, > I think). > > | > | FreeBSD san.rr.com 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Mon Jan 28 14:31:56 > | GMT 2002 murray@builder.freebsdmall.com:/usr/src/sys/compile/GENERIC > | i386 (On an AMD Athlon 600MHz, 512mb RAM) Why not try to compile the same program, using various options, and then execute them by: % time prog Then you can see if there's any difference for that particular program. To notice any difference though it should be a program that make use of a lot of I686 specific instructions. I guess an easy hello world program does not show any significant difference in execution time. :-) /Paul To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message