1 |
On Friday 13 July 2001 23:54, you wrote: |
2 |
> On Fri, Jul 13, 2001 at 11:35:05PM +0300, Dan Armak wrote: |
3 |
> > Hi all, |
4 |
> > |
5 |
> > In make.conf we specify the optimization CXXFLAGS as follows: |
6 |
> > |
7 |
> > # For Pentium and k6/2 machines |
8 |
> > # ----------------------------- |
9 |
> > |
10 |
> > #CHOST="i586-pc-linux-gnu" |
11 |
> > #CFLAGS="-mpentium -march=pentium -O3 -pipe" |
12 |
> > #CXXFLAGS="-mpentium -march=pentium -O3 -pipe" |
13 |
> > |
14 |
> > Why don't we use -march=k6 -mcpu=k6? Wouldn't that allow use of mmx and |
15 |
> > 3dnow, which a generic pentium doesn't have? |
16 |
> |
17 |
> -march=k6 will cause the i586 build to *not* run on a Pentium Classic or |
18 |
> MMX, which is why we don't use it. However, just the -mcpu=k6 should work |
19 |
> on anything. |
20 |
|
21 |
I understand that, it reinforces what I said. People who compile from build |
22 |
snapshots should set more 'exact' optimization settings, and make.conf's |
23 |
comments should tell them to do so. |
24 |
|
25 |
For example: I have a k6-2/500. When I first built Gentoo on top of a build |
26 |
snapshot, I used the make.conf instructions and now hae a system optimized |
27 |
for a generic pentium (i.e. it doesn't even use MMX). I'm not going to |
28 |
generate binary tarballs for use on other machines, so I'll now change my |
29 |
make.conf settings to have -march-k6 -mcpu=k6 and recompile all my packages |
30 |
for better performance. Doesn't that make sense? |
31 |
|
32 |
make.conf should tell people this: i.e. that they can compile with better |
33 |
optimization but lose the ability to run the resulting executable on inferior |
34 |
CPUs. |
35 |
|
36 |
|
37 |
Dan Armak |