Gentoo Archives: gentoo-dev

From: Padraig Brady <padraig.brady@××××××.com>
To: Mark Gordon <mark.gt@×××××××××××××××.uk>
Cc: gentoo-dev@g.o
Subject: Re: [gentoo-dev] auto selection of optimal gcc architecture settings
Date: Mon, 28 Apr 2003 13:46:33
Message-Id: 3EAD2F3A.3010405@corvil.com
In Reply to: Re: [gentoo-dev] auto selection of optimal gcc architecture settings by Mark Gordon
1 Mark Gordon wrote:
2 > On Mon, 28 Apr 2003 10:18:54 +0100
3 > Padraig Brady <padraig.brady@××××××.com> wrote:
4 >
5 >
6 >>Eric Ball wrote:
7 >>
8 >>>On Sat, 26 Apr 2003 12:57 am, Padraig Brady wrote:
9 >>>
10 >>>
11 >>>>Hi,
12 >>>>
13 >>>>I've been testing http://www.pixelbeat.org/scripts/gcccpuopt
14 >>>>over the last while with good results. Essentially it's
15 >>>>a Linux specific script that only helps on x86 at present
16 >>>>but can be updated to other architectures easily.
17 >>>>
18 >>>>It would be beneficial IMHO for gentoo to run it at
19 >>>>installation time and update /etc/make.conf appropriately?
20 >>>>
21 >>>>thanks,
22 >>>>Pádraig.
23 >>>
24 >>>It seems nifty.
25 >>>I'd recommend you submit it in Bugzilla at bugs.gentoo.org or in the
26 >>>
27 >>>gentoo-dev list as the powers-that-be might not read this list.
28 >
29 >
30 > It needs extending even for the x86 compatible world.
31 >
32 > markg@brenda markg $ ./gcccpuopt
33 > -march=pentium2 -mmmx
34 > markg@brenda markg $ cat /proc/cpuinfo
35 > processor : 0
36 > vendor_id : GenuineTMx86
37 > cpu family : 6
38 > model : 4
39 > model name : Transmeta(tm) Crusoe(tm) Processor TM5600
40 >
41 > As far as I'm aware the Crusoe emulates a Pentium, not a PII (I've not
42 > seen anything definitive stating otherwise).
43
44 Nah, cpu family = 6 is quite definitive.
45 This is from /usr/src/linux-2.4/arch/i386/Makefile
46 ifdef CONFIG_MCRUSOE
47 CFLAGS += -march=i686
48 endif
49
50 > Any other strange processors out there that might have problems?
51
52 the only exception is a gcc bug where is assumes 686 has cmov,
53 and this is handled explicitly.
54
55 Pádraig.
56
57
58 --
59 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] auto selection of optimal gcc architecture settings Mark Gordon <mark.gt@×××××××××××××××.uk>