CPUTYPE for Sempron

2005-06-13 Thread Mike Jakubik
Which CPUTYPE should be used for the AMD Sempron CPU? I'm assuming this is
similiar to an athlon-xp. Perhaps an alias or a new entry should be
created for this CPU?

---
CPU: AMD Sempron(tm) Processor 3000+ (1799.81-MHz 686-class CPU)
  Origin = AuthenticAMD  Id = 0x10fc0  Stepping = 0
  
Features=0x78bfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2
  AMD Features=0xc050NX,AMIE,DSP,3DNow!



___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: CPUTYPE for Sempron

2005-06-13 Thread Kövesdán Gábor

Hello,

use CFLAGS=-march=atlhlon-xp. CPUTYPE overrides CFLAGS, so it doesn't 
provide You such sophisticated optimizations.

If You plan to make buildworld, use:
CFLAGS=-O2 -pipe -march=athlon-xp
Anyway, if You just use ports collection, and don't make buildworld
CFLAGS=-O3 -pipe -march=athlon-xp
is also reliable, but it might make some trouble when making buildworld.

Cheers,

Gábor Kövesdán

Mike Jakubik wrote:


Which CPUTYPE should be used for the AMD Sempron CPU? I'm assuming this is
similiar to an athlon-xp. Perhaps an alias or a new entry should be
created for this CPU?

---
CPU: AMD Sempron(tm) Processor 3000+ (1799.81-MHz 686-class CPU)
 Origin = AuthenticAMD  Id = 0x10fc0  Stepping = 0
 
Features=0x78bfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2
 AMD Features=0xc050NX,AMIE,DSP,3DNow!



___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]
 



___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: CPUTYPE for Sempron

2005-06-13 Thread Jonathan Noack

On 06/13/05 14:03, Kövesdán Gábor wrote:
use CFLAGS=-march=atlhlon-xp. CPUTYPE overrides CFLAGS, so it doesn't 
provide You such sophisticated optimizations.

If You plan to make buildworld, use:
CFLAGS=-O2 -pipe -march=athlon-xp
Anyway, if You just use ports collection, and don't make buildworld
CFLAGS=-O3 -pipe -march=athlon-xp
is also reliable, but it might make some trouble when making buildworld.


CPUTYPE doesn't override CFLAGS.  Read /usr/share/mk/bsd.cpu.mk. 
Specifically, the second to last line:

CFLAGS += ${_CPUCFLAGS}

Earlier in the file you see:
_CPUCFLAGS = -march=${CPUTYPE}

So in effect what is happening:
CFLAGS += -march=athlon-xp

I use the following with no issues on 5.x and CURRENT:
CPUTYPE ?= athlon-xp
CFLAGS = -O2 -fno-strict-aliasing -pipe
COPTFLAGS = -O2 -fno-strict-aliasing -pipe


Mike Jakubik wrote:
Which CPUTYPE should be used for the AMD Sempron CPU? I'm assuming 
this is

similiar to an athlon-xp. Perhaps an alias or a new entry should be
created for this CPU?

---
CPU: AMD Sempron(tm) Processor 3000+ (1799.81-MHz 686-class CPU)
 Origin = AuthenticAMD  Id = 0x10fc0  Stepping = 0
 Features=0x78bfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2 


 AMD Features=0xc050NX,AMIE,DSP,3DNow!


--
Jonathan Noack | [EMAIL PROTECTED] | OpenPGP: 0x991D8195



signature.asc
Description: OpenPGP digital signature