Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Aug 2007 10:19:31 +0300
From:      Stefan Lambrev <stefan.lambrev@moneybookers.com>
To:        Roman Divacky <rdivacky@freebsd.org>
Cc:        pluknet <pluknet@gmail.com>, current@freebsd.org, Bj?rn K?nig <bkoenig@cs.tu-berlin.de>
Subject:   Re: Adding k9 and k10 to bsd.cpu.mk
Message-ID:  <46D66F83.2050208@moneybookers.com>
In-Reply-To: <20070829191310.GA50909@freebsd.org>
References:  <-3502020561049594852@unknownmsgid>	<a31046fc0708291203s3e71d603ka7b34cc320a8166a@mail.gmail.com> <20070829191310.GA50909@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi all,

Roman Divacky wrote:
> On Wed, Aug 29, 2007 at 11:03:30PM +0400, pluknet wrote:
>   
>> On 29/08/2007, Bj?rn K?nig <bkoenig@cs.tu-berlin.de> wrote:
>>     
>>> Hello,
>>>
>>> what do you think about adding the CPU types "k9" and "k10"? These
>>> processors have support for SSE3 and I noticed up to 15% faster execution
>>> of CPU-intensive programs (e.g. graphics/povray) that have been compiled
>>> using -march=athlon-mp -msse3.
>>>
>>> Regards
>>> Bj?rn
>>>
>>>       
>> there will be no k9. k10 (Barcelona) is successor of k8 and expected
>> to launch late in Q4 of this year(2007).
>>     
>
> I dont think the name matters THAT MUCH, the important thing is to support
> the newer CPUs with FreeBSD infrastructure... name it "blahblah" if you wish
>   
Why not to use the same name that GCC use for those processors.
If we use different names then gcc, it will  make things little more 
complicated, and I do not see
why we have to do this.

Also for processor names we have references to gcc manual.

 From /usr/share/mk/bsd.cpu.mk :

###############################################################################
# Logic to set up correct gcc optimization flag.  This must be included
# after /etc/make.conf so it can react to the local value of CPUTYPE
# defined therein.  Consult:
#       http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html
#       http://gcc.gnu.org/onlinedocs/gcc/IA-64-Options.html
#       http://gcc.gnu.org/onlinedocs/gcc/RS-6000-and-PowerPC-Options.html
#       http://gcc.gnu.org/onlinedocs/gcc/SPARC-Options.html
#       http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86-64-Options.html

And suggested by GCC the CPU types are:

k8-sse3, opteron-sse3, athlon64-sse3
Improved versions of k8, opteron and athlon64 with SSE3 instruction set 
support.
amdfam10, barcelona
AMD Family 10h core based CPUs with x86-64 instruction set support. 
(This supersets MMX, SSE, SSE2, SSE3, SSE4A, 3dNOW!, enhanced 3dNOW!, 
ABM and 64-bit instruction set extensions.)

P.S. The working link is - 
http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options
Someone is willing to fill PR? :)

> my 2 cents
> roman
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
>   

-- 

Best Wishes,
Stefan Lambrev
ICQ# 24134177




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46D66F83.2050208>