CPUTYPE for Sempron
Jonathan Noack
noackjr at alumni.rice.edu
Mon Jun 13 19:24:30 GMT 2005
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=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2>
>>
>> AMD Features=0xc0500000<NX,AMIE,DSP,3DNow!>
--
Jonathan Noack | noackjr at alumni.rice.edu | OpenPGP: 0x991D8195
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20050613/1c881b41/signature.bin
More information about the freebsd-stable
mailing list