Date: Mon, 13 Jun 2005 14:24:20 -0500 From: Jonathan Noack <noackjr@alumni.rice.edu> To: =?ISO-8859-1?Q?K=F6vesd=E1n_G=E1bor?= <gabor.kovesdan@t-hosting.hu> Cc: Mike Jakubik <mikej@rogers.com>, stable@freebsd.org Subject: Re: CPUTYPE for Sempron Message-ID: <42ADDD64.4070901@alumni.rice.edu> In-Reply-To: <42ADD87E.5010405@t-hosting.hu> References: <3502.172.16.0.199.1118688995.squirrel@172.16.0.1> <42ADD87E.5010405@t-hosting.hu>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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@alumni.rice.edu | OpenPGP: 0x991D8195
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (FreeBSD)
iD8DBQFCrd1pUFz01pkdgZURArxEAJsEbj5JC6H3OoQd+V+4btISy2xujgCfclFu
qjYJDU8HnA7hhr9i1vBhICw=
=0fFD
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42ADDD64.4070901>
