Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[risolto]CFLAGS per P4
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
kandalf
Apprentice
Apprentice


Joined: 13 Nov 2003
Posts: 261

PostPosted: Tue Nov 16, 2004 7:01 pm    Post subject: [risolto]CFLAGS per P4 Reply with quote

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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30996
Location: here

PostPosted: Tue Nov 16, 2004 7:18 pm    Post subject: Reply with quote

-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
View user's profile Send private message
kandalf
Apprentice
Apprentice


Joined: 13 Nov 2003
Posts: 261

PostPosted: Tue Nov 16, 2004 7:24 pm    Post subject: Reply with quote

grazie mille!

metterci a march=pentium4 nn conviene?
Back to top
View user's profile Send private message
polyacryl
n00b
n00b


Joined: 14 Sep 2003
Posts: 50

PostPosted: Tue Nov 16, 2004 7:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
kandalf
Apprentice
Apprentice


Joined: 13 Nov 2003
Posts: 261

PostPosted: Tue Nov 16, 2004 7:38 pm    Post subject: Reply with quote

ok grazie ancora...sono partito col boostrap
Back to top
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Tue Nov 16, 2004 7:40 pm    Post subject: Reply with quote

fedeliallalinea wrote:
-O2 march=i686 -pipe -fomit-frame-pointer . Secondo me non c'e' di meglio di queste


i686 per p4? 8O non c'e' anche -march=pentium4 scusa?!
_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30996
Location: here

PostPosted: Tue Nov 16, 2004 7:44 pm    Post subject: Reply with quote

lavish wrote:
i686 per p4? 8O 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
View user's profile Send private message
Nemesix2001
Tux's lil' helper
Tux's lil' helper


Joined: 24 Oct 2004
Posts: 108

PostPosted: Tue Nov 16, 2004 7:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Tue Nov 16, 2004 7:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Tue Nov 16, 2004 7:47 pm    Post subject: Reply with quote

fedeliallalinea wrote:
lavish wrote:
i686 per p4? 8O 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 :P 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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30996
Location: here

PostPosted: Tue Nov 16, 2004 8:01 pm    Post subject: Reply with quote

lavish wrote:
Non penso arrivera' mai quel giorno :P

Ma quando un pacchetto non si installa su una macchina tornano utili
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
kandalf
Apprentice
Apprentice


Joined: 13 Nov 2003
Posts: 261

PostPosted: Tue Nov 16, 2004 8:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30996
Location: here

PostPosted: Tue Nov 16, 2004 8:12 pm    Post subject: Reply with quote

Posta le tue cflags (facendo un copia incolla)
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
kandalf
Apprentice
Apprentice


Joined: 13 Nov 2003
Posts: 261

PostPosted: Tue Nov 16, 2004 8:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30996
Location: here

PostPosted: Tue Nov 16, 2004 8:25 pm    Post subject: Reply with quote

Ma adesso va ho ti da quell'errore?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
kandalf
Apprentice
Apprentice


Joined: 13 Nov 2003
Posts: 261

PostPosted: Tue Nov 16, 2004 8:33 pm    Post subject: Reply with quote

gettext lo ha superato....

ma vanno bene?
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30996
Location: here

PostPosted: Tue Nov 16, 2004 8:35 pm    Post subject: Reply with quote

kandalf wrote:
ma vanno bene?

Si si benissimo.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
kandalf
Apprentice
Apprentice


Joined: 13 Nov 2003
Posts: 261

PostPosted: Tue Nov 16, 2004 8:39 pm    Post subject: Reply with quote

:D
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30996
Location: here

PostPosted: Tue Nov 16, 2004 8:40 pm    Post subject: Reply with quote

Metti il tag [risolto] al titolo
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
polyacryl
n00b
n00b


Joined: 14 Sep 2003
Posts: 50

PostPosted: Tue Nov 16, 2004 9:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
CarloJekko
Veteran
Veteran


Joined: 31 Mar 2005
Posts: 1315
Location: Baia Domizia :-)

PostPosted: Wed Apr 06, 2005 10:43 am    Post subject: Nuove CFLAGS Reply with quote

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
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Wed Apr 06, 2005 10:46 am    Post subject: Reply with quote

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
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Wed Apr 06, 2005 10:58 am    Post subject: Reply with quote

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
View user's profile Send private message
CarloJekko
Veteran
Veteran


Joined: 31 Mar 2005
Posts: 1315
Location: Baia Domizia :-)

PostPosted: Wed Apr 06, 2005 11:00 am    Post subject: Reply with quote

Scusate... ho appena qualche settiamna... stò imparando...
_________________
C.
Back to top
View user's profile Send private message
Cazzantonio
Bodhisattva
Bodhisattva


Joined: 20 Mar 2004
Posts: 4514
Location: Somewere around the world

PostPosted: Wed Apr 06, 2005 11:11 am    Post subject: Reply with quote

@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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum