Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
EXTREME OPTIMIZATION
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
Phemt
Apprentice
Apprentice


Joined: 05 Apr 2003
Posts: 242

PostPosted: Sun Jun 22, 2003 4:48 pm    Post subject: EXTREME OPTIMIZATION Reply with quote

Volevo sapere che ottimizzazioni usate nella vostra gentoo.
Fin dove si può arrivare mantenendo un sistema di fatto non instabile?
Quali ottimizzazioni danno risultati migliori soprattutto come velocità di X & kde/gnome?

Queste sono le mie

CFLAGS="-O3 -mcpu=athlon-xp -march=athlon-xp -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4"
prese pari pari dalla faq di gentoo.org :)
(ho solo cambiato -mcpu=i686 e -march=i686)
Back to top
View user's profile Send private message
shev
Bodhisattva
Bodhisattva


Joined: 03 Feb 2003
Posts: 4084
Location: Italy

PostPosted: Sun Jun 22, 2003 5:10 pm    Post subject: Reply with quote

Io attualmente uso delle opzioni classiche e non troppo spinte, delle quali non mi lamento:
-march=athlon-xp -O3 -pipe -fomit-frame-pointer

Un sito che riportava qualche info in più, alcune impostazioni alternative più o meno spinte, è il più volte citato:
http://www.freehackers.org/gentoo/gccflags/flag_gcc3opt.html
(guardare anche le altre pagine oltre a questa)

In dettaglio, riguardo ai settaggi "estremi" relativi all'athlon-xp di questo link, qualcuno in questo forum (non ricordo chi e in che thread :P ) ha avuto problemi se non ho capito male, però non si era sicuri se fossero legati a queste cflags o che altro. L'interessato potrà darci maggiori lumi.
Back to top
View user's profile Send private message
sciack
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2002
Posts: 120
Location: Genoa, Italy.

PostPosted: Sun Jun 22, 2003 7:15 pm    Post subject: Reply with quote

ciao, perché non parliamo invece di ridondanze nei flag? spesso penso che ci impegniamo così tanto ad aggiungere nuove presunte ottimizzazioni quando invece sono già di default o magari all'interno di altre categorie tipo -O3. Io comunque uso queste:

Code:
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -ffast-math -mmmx -m3dno
w -msse"


ciao
_________________
the sciack
Back to top
View user's profile Send private message
maur8
Apprentice
Apprentice


Joined: 04 Mar 2003
Posts: 229
Location: Pescara (in serie B!!!), Italy

PostPosted: Mon Jun 23, 2003 8:54 am    Post subject: Reply with quote

sciack wrote:
ciao, perché non parliamo invece di ridondanze nei flag? spesso penso che ci impegniamo così tanto ad aggiungere nuove presunte ottimizzazioni quando invece sono già di default o magari all'interno di altre categorie tipo -O3. Io comunque uso queste:

Code:
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -ffast-math -mmmx -m3dnow -msse"


ciao

Esattamente le stesse ottimizzazioni con un portatile Duron Morgan a 1Ghz e funziona tutto benissimo
_________________
Maur8.
"They decided our fate in a microsecond. Extermination"
Sgt. Kyle Rise, The Terminator
Back to top
View user's profile Send private message
AnonimoVeneziano
n00b
n00b


Joined: 25 May 2003
Posts: 65

PostPosted: Mon Jun 23, 2003 8:42 pm    Post subject: Reply with quote

Puoi tranquilamente togliere -mmmx -m3dnow -msse perchè è già in -march=athlon-xp , e attento a -ffast-math perchè a volte da problemi sui calcoli in virgola mobile

CIao
Back to top
View user's profile Send private message
Peach
Advocate
Advocate


Joined: 08 Mar 2003
Posts: 3686
Location: London, UK

PostPosted: Mon Jun 23, 2003 9:08 pm    Post subject: Reply with quote

quindi in fondo in fondo... sarebbe ottimale una cosa tipo:

Code:
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer


:)

senza troppe pretese
_________________
Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom
Back to top
View user's profile Send private message
bsolar
Bodhisattva
Bodhisattva


Joined: 12 Jan 2003
Posts: 2764

PostPosted: Tue Jun 24, 2003 5:04 am    Post subject: Reply with quote

Phemt wrote:
CFLAGS="-O3 -mcpu=athlon-xp -march=athlon-xp -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4"

Uhm, -frerun-cse-after-loop e -frerun-loop-opt dovrebbero essere già attivate da -O2...

CMQ io uso CFLAGS="-march=pentium4 -mfpmath=sse -Os -pipe"
_________________
I may not agree with what you say, but I'll defend to the death your right to say it.
Back to top
View user's profile Send private message
shev
Bodhisattva
Bodhisattva


Joined: 03 Feb 2003
Posts: 4084
Location: Italy

PostPosted: Tue Jun 24, 2003 8:14 am    Post subject: Reply with quote

Non per essere ripetitivo, ma sul solito sito, in questa pagine di FAQ ( http://www.freehackers.org/gentoo/gccflags/faq.html ), vengono indicate abbastanza chiaramente le opzioni attivate dai vari -Ox, nonchè dai vari tipi di -march (o cmq dove recuperarle).

Nel caso specifico, bsolar dice bene, infatti le due opzioni indicate sono già comprese in -O2 ( e quindi -O3, che non fa che aggiungere due flag: inline_functions e rename_registers ). Come altrettanto bene dice Anonimo Veneziano, dicendo che le tre opzioni mmx, 3dnow e sse sono già incluse in march=athlon-xp.
Tutto questo se non ho clamorosamente frainteso il senso delle info lette sul sito :D
Back to top
View user's profile Send private message
Gavrila
Apprentice
Apprentice


Joined: 08 Jun 2003
Posts: 275

PostPosted: Tue Jun 24, 2003 1:09 pm    Post subject: Reply with quote

AnonimoVeneziano wrote:
Puoi tranquilamente togliere -mmmx -m3dnow -msse perchè è già in -march=athlon-xp , e attento a -ffast-math perchè a volte da problemi sui calcoli in virgola mobile

CIao



Ciao ^-^

ma questa info dove l'hai trovata? anche io l'ho "sentito dire" ma dove un riscontro oggetivo? nel man gcc questo NON e' specificato affatto, anzi da come e' scritto il man sembrerebbe proprio essere il contrario ...

?_?


Last edited by Gavrila on Tue Jun 24, 2003 2:30 pm; edited 1 time in total
Back to top
View user's profile Send private message
shev
Bodhisattva
Bodhisattva


Joined: 03 Feb 2003
Posts: 4084
Location: Italy

PostPosted: Tue Jun 24, 2003 2:18 pm    Post subject: Reply with quote

Gavrila wrote:

ma questa info dove l'hai trovata? anche io l'ho "sentito dire" ma dove un riscontro oggetivo? nel man gcc questo NON e' specificato affatto, anzi da come e' scritto il man sembrerebbe proprio che essere il contrario


Se non ti fidi del link che ho postato prima e il manuale effettivamente non dice nulla, non ti resta che andare direttamente a guardarti i sorgenti.
Qui trovi la versione cvs online. Il file in questione dovrebbe essere questo.
Buona lettura, di cosette interessanti ne puoi scoprire da qui ;)
Back to top
View user's profile Send private message
Gavrila
Apprentice
Apprentice


Joined: 08 Jun 2003
Posts: 275

PostPosted: Tue Jun 24, 2003 2:29 pm    Post subject: Reply with quote

Shev wrote:
Gavrila wrote:

ma questa info dove l'hai trovata? anche io l'ho "sentito dire" ma dove un riscontro oggetivo? nel man gcc questo NON e' specificato affatto, anzi da come e' scritto il man sembrerebbe proprio essere il contrario


Se non ti fidi del link che ho postato prima e il manuale effettivamente non dice nulla, non ti resta che andare direttamente a guardarti i sorgenti.
Qui trovi la versione cvs online. Il file in questione dovrebbe essere questo.
Buona lettura, di cosette interessanti ne puoi scoprire da qui ;)


Ottimo tnx!!!! :)
Back to top
View user's profile Send private message
AnonimoVeneziano
n00b
n00b


Joined: 25 May 2003
Posts: 65

PostPosted: Wed Jun 25, 2003 12:07 pm    Post subject: Reply with quote

Gavrila wrote:
AnonimoVeneziano wrote:
Puoi tranquilamente togliere -mmmx -m3dnow -msse perchè è già in -march=athlon-xp , e attento a -ffast-math perchè a volte da problemi sui calcoli in virgola mobile

CIao



Ciao ^-^

ma questa info dove l'hai trovata? anche io l'ho "sentito dire" ma dove un riscontro oggetivo? nel man gcc questo NON e' specificato affatto, anzi da come e' scritto il man sembrerebbe proprio essere il contrario ...

?_?


Ciao, l'ho letto sul sito del GCC http://gcc.gnu.org , nella sezione dedicata alle ottimizzazioni

Ciao
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
Page 1 of 1

 
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