linux user group brescia

immagine del castello

Archivio della mailing list

-march=pentium4

Bauno bauno a inwind.it
Mar 11 Nov 2003 10:39:43 UTC
On Tue, 2003-11-11 at 09:04, Vernia Damiano wrote:
> 	Ciao, parlando della gentoo (il thread ora flame) 

Secondo te quello è un flame? Sei delicato di budella...scommetto che
non bevi Whiskey...:)

> 	Domanda semplice semplice: incasina anche il kernel? Perche' qui
> in lab c'e' un simpatico server con P4 Xeon (dual) che quando fatto andare
> SMP incarta i filesystem (qualche volta, non sempre; cosi' non si e' mamco
> sicuri...). 

Distro e kernel utilizzati?

> Il kernel e' stato compilato scegliendo appunto il P4 come
> processore.

Nah...la scelta di un p4 nella configurazione del kernel NON implica un
-march=pentium4 sulla linea di comando. Attiva semplicemente alcune
ottimizzazioni.

> PS: Perche' su un sistema dual Xeon (dentro ci sono due affarini, cavolo!)
> il kernel rileva quattro processori? E paiono proprio 4 anche
> valutando i
> processi che ci girano sopra.

Si chiama hyperthreading...2 CPU al prezzo di 1 :)

> PS2: Quante diavolo sono le possibili opzioni di -arch, -cpu ecc? "man
> gcc" ne elenca solo una miseria per i386

La mia manpage è chiarissima:

       -mcpu=cpu-type
           Tune to cpu-type everything applicable about the generated
code,
           except for the ABI and the set of available instructions. 
The
           choices for cpu-type are i386, i486, i586, i686, pentium,
pentium-
           mmx, pentiumpro, pentium2, pentium3, pentium4, k6, k6-2,
k6-3,
           athlon, athlon-tbird, athlon-4, athlon-xp, athlon-mp,
winchip-c6,
           winchip2 and c3.
                                                                                                      
           While picking a specific cpu-type will schedule things
appropri-
           ately 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 and athlon are the AMD chips 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.



-- 
Bauno - Eurydices, oro, properata retexite fata!
"I fatti sono la cosa piu` ostinata del mondo" (MB)




Maggiori informazioni sulla lista Lug