Hallo

In der GCC Doku http://gcc.gnu.org/onlinedocs/gcc-2....cc_2.html#SEC2
habe ich folgendes gelesen:

"2.14.15 Intel 386 Options
These `-m' options are defined for the i386 family of computers:


-mcpu=cpu type
Assume the defaults for the machine type cpu type when scheduling instructions. The choices for cpu type are:
`i386' `i486' `i586' `i686'
`pentium' `pentiumpro' `k6'


While picking a specific cpu type will schedule things appropriately for that particular chip, the compiler will not generate any code that does not run on the i386 without the `-march=cpu type' option being used. `i586' is equivalent to `pentium' and `i686' is equivalent to `pentiumpro'. `k6' is the AMD chip as opposed to the Intel ones.


-march=cpu type
Generate instructions for the machine type cpu type. The choices for cpu type are the same as for `-mcpu'. Moreover, specifying `-march=cpu type' implies `-mcpu=cpu type'.

-m386
-m486
-mpentium
-mpentiumpro
Synonyms for -mcpu=i386, -mcpu=i486, -mcpu=pentium, and -mcpu=pentiumpro respectively. These synonyms are deprecated. "

Leider steht da nicht dran, welches Flag bei einem Atlhon gilt.
Müßte ich da -mcpu=k6
nehmen oder gibts da schon ne extra Option für einen Atlhon (K7).

Immerhin ist ein K6 eher ein Pentium also 586 als ein Rechner der Athlon (686) Klasse.