Gentoo Archives: gentoo-dev

From: Ioannis Aslanidis <aioannis@×××××.org>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Question about mcpu, mtune and march
Date: Sat, 21 Aug 2004 15:09:07
Message-Id: 41276592.8030000@tinet.org
In Reply to: Re: [gentoo-dev] Question about mcpu, mtune and march by Jason Wever
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Thank you.
5
6 What I'm trying to do is to compile in my Athlon XP in order to use
7 those same packages under a K6-2 and a Pentium-4.
8
9 I am not sure how the order of -march and -mtune/-mcpu should be. What I
10 want is to do code for Athlon XP without breaking the compatibility with
11 Pentium 4 and K6-2.
12
13 The flags I am currently using are the following:
14
15 CFLAGS="-O3 -march=i586 -mtune=athlon-xp -mtune=k6-2 -mtune=i586
16 - -mtune=i686 -mmmx -fomit-frame-pointer -funroll-loops -pipe -fforce-addr
17 - -fforce-mem -fmove-all-movables"
18
19 I wonder whether there exists any way to obtain more optimized code
20 using the -march and -mcpu/-mtune flags.
21
22 Jason Wever wrote:
23 | On Sat, 21 Aug 2004, Ioannis Aslanidis wrote:
24 |
25 |>> Hi there!
26 |>>
27 |>> The line below
28 |>>
29 |>> `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
30 |>>
31 |>> showed up when emerging packages... is it because of GCC 3.4?
32 |>>
33 |>> So, does -mtune work as -mcpu?
34 |
35 |
36 | Note: This depends on which architecture you are on and may only apply
37 | to x86 (SPARC for instance has no -march value so -mcpu and -mtune have
38 | not changed for SPARC AFAIK).
39 |
40 |
41 | -- Jason Wever
42 | Gentoo/Sparc Co-Team Lead
43
44
45
46
47 -----BEGIN PGP SIGNATURE-----
48 Version: GnuPG v1.2.5 (GNU/Linux)
49
50 iD8DBQFBJ2WSiqdVOvIC0GcRAn/oAJwKMsAnt6nQCoQq7jHiR2r773Dx+QCaAqVJ
51 m0HIjexBtR+EvKpGIEiqndk=
52 =wymb
53 -----END PGP SIGNATURE-----
54
55 --
56 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] Question about mcpu, mtune and march Paul de Vrieze <pauldv@g.o>