Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
-Os: la soluzione (ignorata) a tanti mali?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
shev
Bodhisattva
Bodhisattva


Joined: 03 Feb 2003
Posts: 4084
Location: Italy

PostPosted: Wed Mar 16, 2005 12:47 pm    Post subject: Reply with quote

Danilo wrote:
Mi passi anche le altre flags che usi oltre a Os?


Certo, anche se non sono nulla di particolare:
- su ppc uso queste:
CFLAGS="-mcpu=7450 -Os -pipe -maltivec -mabi=altivec -mpowerpc-gfxopt -fsigned-char -falign-functions=4 -falign-jumps=4"
- su x86:
CFLAGS="-mcpu=QUELLO_CHE_HAI -Os -pipe -fsigned-char -falign-functions=4 -falign-jumps=4"

Mi ci trovo bene e problemi non ne ho mai avuto, le avevo scelte dopo aver fatto qualche prova in passato e aver letto un bell'articolo a riguardo (passato sulle vecchie GWN), in cui cflags tipo queste erano risultate a sorpresa un ottimo compromesso per prestazioni/stabilità.
_________________
Se per vivere ti dicono "siediti e stai zitto" tu alzati e muori combattendo
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Wed Mar 16, 2005 8:39 pm    Post subject: Reply with quote

Cazzantonio wrote:
io non ho mai notato differenza tra -Os e -O2.... ma nemmeno tra -march=i686 e -march=athlon-xp.....


-march=athlon-xp implica -march=i686.
volendo fare le cose per bene dovresti specificare
Code:
-march=i686 -mcpu=athlon-xp
e magari aggiungere anche un
Code:
-mmmx -m3dnow
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Thu Mar 17, 2005 9:15 am    Post subject: Reply with quote

k.gothmog wrote:
-march=athlon-xp implica -march=i686.
volendo fare le cose per bene dovresti specificare
Code:
-march=i686 -mcpu=athlon-xp
e magari aggiungere anche un
Code:
-mmmx -m3dnow


Non per essere cattivo ma se limitassimo la discussione alla specifica -Os vs -O2 vs -O3? Di thread con CFLAGS e arch ne abbiamo un bel pò ;-)
_________________
Ciao da me!
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 Previous  1, 2
Page 2 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