Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Utilizzo del flag -O3
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
source-based
n00b
n00b


Joined: 12 Nov 2014
Posts: 51

PostPosted: Sun Nov 16, 2014 4:19 pm    Post subject: Utilizzo del flag -O3 Reply with quote

È davvero pericoloso usarlo in make.conf?
Back to top
View user's profile Send private message
GuN_jAcK
l33t
l33t


Joined: 23 Mar 2005
Posts: 832
Location: Prague, Czech Republic

PostPosted: Sun Nov 16, 2014 5:15 pm    Post subject: Reply with quote

Quote:

cit.

"-O3: This is the highest level of optimization possible. It enables optimizations that are expensive in terms of compile time and memory usage. Compiling with -O3 is not a guaranteed way to improve performance, and in fact in many cases can slow down a system due to larger binaries and increased memory usage. -O3 is also known to break several packages. Therefore, using -O3 is not recommended. "



Solo il fatto che non assicura il massimo della performance può tranquilizzarti. Io non starei a farci tanta dietrologia.

Pensa al solo fatto che con l'hardware di oggi queste cose sono piuttosto insignificanti.
_________________
Rispondi in maniera intelligente anche a chi ti tratta stupidamente.
Back to top
View user's profile Send private message
djinnZ
Advocate
Advocate


Joined: 02 Nov 2006
Posts: 4831
Location: somewhere in L.O.S.

PostPosted: Mon Nov 17, 2014 12:15 pm    Post subject: Reply with quote

In make.conf è una gigantesca idiozia, perchè -O3 non era e non è mai stato adeguato alle librerie di base.
Questo perchè fanno ampio uso di assembly inline e l'ottimizzazione eccessiva scombina tutto.
Usarlo in make.conf vuol dire esporsi al richio di un gcc che non è in grado di ricompilare se stesso o libc con il risultato che dovrai ricompilare tutto da stage3 (il trucco per non reinstallare lo ho indicato in diverse salse nella sezione doc). Od anche peggio se è roba che accede all'hardware.
Alcuni pacchetti, vedi LO/OOo o mozilla lo filtrano a prescindere, ed è certo che non funziona. Altri... l'ultima volta che ho provato sembravano andare leggermente meglio in avvio (kde).

Usarlo un pò su tutti i pacchetti non di base? non vedo perché no. Io non lo faccio perché alla fine lo sbattimento non mi assicura adeguati benefici.

O procedi via /etc/portage a specificarlo per specifici pacchetti o lo metti si in make in make.conf ma imposti -O2 su tutta la toolchain di base e su tutte le librerie che accedono all'hardware. Se proprio vuoi è l'unica via che non risulti meramente autolesionistica.
_________________
scita et risus abundant in ore stultorum sed etiam semper severi insani sunt:wink:
mala tempora currunt...mater stultorum semper pregna est :evil:
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist :wink:
Back to top
View user's profile Send private message
source-based
n00b
n00b


Joined: 12 Nov 2014
Posts: 51

PostPosted: Mon Nov 17, 2014 2:14 pm    Post subject: Reply with quote

Vi ringrazio per le risposte e alla fine ho lasciato solo -O2 -pipe ,cioè i flag di default.
Stavo cercando di ottenere un po' di performance in più per il mio PC che,anche se comprato meno di un anno fa, è un laptop di fascia bassa che non comprerei una seconda volta.
Alla fine mi accontento delle impostazioni predefenite,visto che fa il boot in meno di 10 secondi senza Xorg.
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