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
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigDB0CB91370D9B0443C6DFAD7 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable On 06/13/05 14:03, K=F6vesd=E1n G=E1bor wrote: > use CFLAGS=3D-march=3Datlhlon-xp. CPUTYPE overrides CFLAGS, so it doesn= 't=20 > provide You such sophisticated optimizations. > If You plan to make buildworld, use: > CFLAGS=3D-O2 -pipe -march=3Dathlon-xp > Anyway, if You just use ports collection, and don't make buildworld > CFLAGS=3D-O3 -pipe -march=3Dathlon-xp > is also reliable, but it might make some trouble when making buildworld= =2E CPUTYPE doesn't override CFLAGS. Read /usr/share/mk/bsd.cpu.mk.=20 Specifically, the second to last line: CFLAGS +=3D ${_CPUCFLAGS} Earlier in the file you see: _CPUCFLAGS =3D -march=3D${CPUTYPE} So in effect what is happening: CFLAGS +=3D -march=3Dathlon-xp I use the following with no issues on 5.x and CURRENT: CPUTYPE ?=3D athlon-xp CFLAGS =3D -O2 -fno-strict-aliasing -pipe COPTFLAGS =3D -O2 -fno-strict-aliasing -pipe > Mike Jakubik wrote: >> Which CPUTYPE should be used for the AMD Sempron CPU? I'm assuming=20 >> 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 =3D "AuthenticAMD" Id =3D 0x10fc0 Stepping =3D 0 >> Features=3D0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR= ,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2>=20 >> >> AMD Features=3D0xc0500000<NX,AMIE,DSP,3DNow!> --=20 Jonathan Noack | noackjr@alumni.rice.edu | OpenPGP: 0x991D8195 --------------enigDB0CB91370D9B0443C6DFAD7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCrd1pUFz01pkdgZURArxEAJsEbj5JC6H3OoQd+V+4btISy2xujgCfclFu qjYJDU8HnA7hhr9i1vBhICw= =0fFD -----END PGP SIGNATURE----- --------------enigDB0CB91370D9B0443C6DFAD7--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42ADDD64.4070901>