Re: Adding k9 and k10 to bsd.cpu.mk

From: Stefan Lambrev <stefan.lambrev_at_moneybookers.com>
Date: Thu, 30 Aug 2007 10:19:31 +0300
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_at_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_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
>   

-- 

Best Wishes,
Stefan Lambrev
ICQ# 24134177
Received on Thu Aug 30 2007 - 05:19:33 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:17 UTC