View previous topic :: View next topic |
Author |
Message |
kandalf Apprentice
Joined: 13 Nov 2003 Posts: 261
|
Posted: Tue Nov 16, 2004 7:01 pm Post subject: [risolto]CFLAGS per P4 |
|
|
dopo tanto tempo torno a gentoo...vorrei un piacere...potete indicarmi delle buone CFLAGS per il pentium 4?
che vadano bene e siano veloci....grazie 1000
sto partendo dallo stage 1
Last edited by kandalf on Tue Nov 16, 2004 9:41 pm; edited 1 time in total |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30996 Location: here
|
Posted: Tue Nov 16, 2004 7:18 pm Post subject: |
|
|
-O2 march=i686 -pipe -fomit-frame-pointer . Secondo me non c'e' di meglio di queste _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
kandalf Apprentice
Joined: 13 Nov 2003 Posts: 261
|
Posted: Tue Nov 16, 2004 7:24 pm Post subject: |
|
|
grazie mille!
metterci a march=pentium4 nn conviene? |
|
Back to top |
|
|
polyacryl n00b
Joined: 14 Sep 2003 Posts: 50
|
Posted: Tue Nov 16, 2004 7:29 pm Post subject: |
|
|
Hi,
uhm, I can't speak italian, but maybe..
Code: | CHOST="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -mtune=pentium4 -fomit-frame-pointer -pipe -mfpmath=sse -msse -msse2 -mmmx -m3dnow"
CXXFLAGS="${CFLAGS}" |
This is for stage 1.. and i never had any problems with it. Ah, and "-mtune=pentium4" works only with "gcc 3.4". I think...
greetings.. :) |
|
Back to top |
|
|
kandalf Apprentice
Joined: 13 Nov 2003 Posts: 261
|
Posted: Tue Nov 16, 2004 7:38 pm Post subject: |
|
|
ok grazie ancora...sono partito col boostrap |
|
Back to top |
|
|
lavish Bodhisattva
Joined: 13 Sep 2004 Posts: 4296
|
Posted: Tue Nov 16, 2004 7:40 pm Post subject: |
|
|
fedeliallalinea wrote: | -O2 march=i686 -pipe -fomit-frame-pointer . Secondo me non c'e' di meglio di queste |
i686 per p4? non c'e' anche -march=pentium4 scusa?! _________________ minimalblue.com | secgroup.github.io/ |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30996 Location: here
|
Posted: Tue Nov 16, 2004 7:44 pm Post subject: |
|
|
lavish wrote: | i686 per p4? non c'e' anche -march=pentium4 scusa?! |
Si ma non cambia nulla anzi quel giorno che devi fare dei bianri poi sei incasinato perche' uno pentium4 l'altro athlon,... _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Nemesix2001 Tux's lil' helper
Joined: 24 Oct 2004 Posts: 108
|
Posted: Tue Nov 16, 2004 7:44 pm Post subject: |
|
|
forse ha scelto i686 per stabilità?..non lo so io ho queste
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
devo dire che non le ho trovate instabili...però non so se le prestazioni rispetto a le flags di fedeliallalinea migliorino significativamente o addirittura in senso assoluto...da qualce paret c'era una pagina con dei benchmark
Ciao ciao |
|
Back to top |
|
|
lavish Bodhisattva
Joined: 13 Sep 2004 Posts: 4296
|
Posted: Tue Nov 16, 2004 7:44 pm Post subject: |
|
|
polyacryl wrote: | Hi,
uhm, I can't speak italian, but maybe..
Code: | CHOST="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -mtune=pentium4 -fomit-frame-pointer -pipe -mfpmath=sse -msse -msse2 -mmmx -m3dnow"
CXXFLAGS="${CFLAGS}" |
This is for stage 1.. and i never had any problems with it. Ah, and "-mtune=pentium4" works only with "gcc 3.4". I think...
greetings.. |
I cannot see any sense using -march with -mtune
from http://gcc.gnu.org/onlinedocs/gcc-3.4.3/gcc/i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options:
-mtune=cpu-type
Tune to cpu-type everything applicable about the generated code, except for the ABI and the set of available instructions.
[...]
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.
-march=cpu-type
Generate instructions for the machine type cpu-type. The choices for cpu-type are the same as for -mtune. Moreover, specifying -march=cpu-type implies -mtune=cpu-type. _________________ minimalblue.com | secgroup.github.io/ |
|
Back to top |
|
|
lavish Bodhisattva
Joined: 13 Sep 2004 Posts: 4296
|
Posted: Tue Nov 16, 2004 7:47 pm Post subject: |
|
|
fedeliallalinea wrote: | lavish wrote: | i686 per p4? non c'e' anche -march=pentium4 scusa?! |
Si ma non cambia nulla anzi quel giorno che devi fare dei bianri poi sei incasinato perche' uno pentium4 l'altro athlon,... |
Non penso arrivera' mai quel giorno cmq io sono su amd64 e ho il mio bello -march=athlon64 con gcc3.4 (prestazioni migliorate un casino dai test fatti con nbench rispetto al gcc3.3 che non supportava direttamente l'arch amd64) _________________ minimalblue.com | secgroup.github.io/ |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30996 Location: here
|
Posted: Tue Nov 16, 2004 8:01 pm Post subject: |
|
|
lavish wrote: | Non penso arrivera' mai quel giorno |
Ma quando un pacchetto non si installa su una macchina tornano utili _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
kandalf Apprentice
Joined: 13 Nov 2003 Posts: 261
|
Posted: Tue Nov 16, 2004 8:09 pm Post subject: |
|
|
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i686-pc-linux-gnu-strip... no
checking for strip... strip
checking for i686-pc-linux-gnu-gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details.
configure: error: /bin/sh './configure' failed for autoconf-lib-link
!!! ERROR: sys-devel/gettext-0.12.1-r2 failed.
!!! Function econf, Line 449, Exitcode 1
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.
!? |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30996 Location: here
|
Posted: Tue Nov 16, 2004 8:12 pm Post subject: |
|
|
Posta le tue cflags (facendo un copia incolla) _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
kandalf Apprentice
Joined: 13 Nov 2003 Posts: 261
|
Posted: Tue Nov 16, 2004 8:17 pm Post subject: |
|
|
prima avevo provato le tue fedeli
ora ho provato così
CFLAGS="-march=pentium4 -O3 -pipe"
e sembra andare....vanno bene lo stesso? |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30996 Location: here
|
Posted: Tue Nov 16, 2004 8:25 pm Post subject: |
|
|
Ma adesso va ho ti da quell'errore? _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
kandalf Apprentice
Joined: 13 Nov 2003 Posts: 261
|
Posted: Tue Nov 16, 2004 8:33 pm Post subject: |
|
|
gettext lo ha superato....
ma vanno bene? |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30996 Location: here
|
Posted: Tue Nov 16, 2004 8:35 pm Post subject: |
|
|
kandalf wrote: | ma vanno bene? |
Si si benissimo. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
kandalf Apprentice
Joined: 13 Nov 2003 Posts: 261
|
Posted: Tue Nov 16, 2004 8:39 pm Post subject: |
|
|
|
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30996 Location: here
|
Posted: Tue Nov 16, 2004 8:40 pm Post subject: |
|
|
Metti il tag [risolto] al titolo _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
polyacryl n00b
Joined: 14 Sep 2003 Posts: 50
|
Posted: Tue Nov 16, 2004 9:10 pm Post subject: |
|
|
lavish wrote: | -march=cpu-type
Generate instructions for the machine type cpu-type. The choices for cpu-type are the same as for -mtune. Moreover, specifying -march=cpu-type implies -mtune=cpu-type. |
Oh, i see, thank you, interesting.. so, eerm, when i use "-march=..", "-mtune=.." is unnecessary.. good to know.. :) |
|
Back to top |
|
|
CarloJekko Veteran
Joined: 31 Mar 2005 Posts: 1315 Location: Baia Domizia :-)
|
Posted: Wed Apr 06, 2005 10:43 am Post subject: Nuove CFLAGS |
|
|
premetto di avere UN PIV 2.4
ho impostato queste cflags sul make.conf
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
ora cercando ho visto che il sistema è stabile anche con queste Flags
CFLAGS="-march=pentium4 -mtune=pentium4 -O3 -pipe -fforce-addr -falign-functions=4 -fprefetch-loop-arrays -fomit-frame-pointer"
che fanno usare meglio le flags del mio processore...
Ora la domanda che mi sorge è questa : esistono flags che non rendono instabile il sistema, e soprattutto che fanno valere la pena di ricompilare il sistema da zero (cioè che rendono effettivamente più veloce tutto l'avvio del sistema) ?
Aprrezzerò qualsiasi commento grazie... _________________ C. |
|
Back to top |
|
|
lavish Bodhisattva
Joined: 13 Sep 2004 Posts: 4296
|
Posted: Wed Apr 06, 2005 10:46 am Post subject: |
|
|
Se ne è parlato non tanto.... di più... potevi fare una ricerca sul forum e se avevi ancora qualche dubbio postare un un thread già aperto. _________________ minimalblue.com | secgroup.github.io/ |
|
Back to top |
|
|
gutter Bodhisattva
Joined: 13 Mar 2004 Posts: 7162 Location: Aarau, Aargau, Switzerland
|
Posted: Wed Apr 06, 2005 10:58 am Post subject: |
|
|
Fatto il merge del thread di CarloJekko.
Per favore facciamola una ricerca prima di postare e come suggerito da lavish in caso di risultato positivo usiamo uno dei thread trovati. _________________ Registered as User #281564 and Machines #163761 |
|
Back to top |
|
|
CarloJekko Veteran
Joined: 31 Mar 2005 Posts: 1315 Location: Baia Domizia :-)
|
Posted: Wed Apr 06, 2005 11:00 am Post subject: |
|
|
Scusate... ho appena qualche settiamna... stò imparando... _________________ C. |
|
Back to top |
|
|
Cazzantonio Bodhisattva
Joined: 20 Mar 2004 Posts: 4514 Location: Somewere around the world
|
Posted: Wed Apr 06, 2005 11:11 am Post subject: |
|
|
@CarloJekko
la scelta delle cflags è spesso una cosa religiosa e capita che delle ottimizzazioni generiche come quelle sugerite da fedeliallalinea siano altrettanto performanti (per quanto riguarda la percezione dell'utente) di ottimizzazioni più spinte....
tra le LDFLAGS abbiamo trovato recentemente un'ottima ottimizzazione che è Code: | LDFLAGS="-Wl,-O1 -Wl,--as-needed" | che pare velocizzare molto le applicazioni... ancora non è ben chiaro se sia un'ottimizzazione stabile o meno....
Approfitto del topic per fare una domanda che mi assilla da tempo....
specificare ad esempio march=athlon-xp e anche -mmmx, -msse, -m3dnow è utile? non è che le ultime tre ottimizzazioni sono già comprese nell'march ?
me lo domando da un sacco di tempo ma ancora non ho capito se siano ridondanti o meno (il man di gcc non è chiarissimo a riguardo....)
infine... se compilo tutto per i686 e non specifico -mmmx etc... ha senso mettere le use corrispondenti (mmx, sse, 3dnow) nel make.conf? _________________ Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne |
|
Back to top |
|
|
|