Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Make.conf] Aide svp
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
Animatrix
Guru
Guru


Joined: 13 May 2006
Posts: 480
Location: France - Gard (30)

PostPosted: Tue Apr 03, 2007 11:23 am    Post subject: [Make.conf] Aide svp Reply with quote

Salut à tous !!!

J'ai un Intel Core 2 Duo 2Ghz (Centrino).
Pouvez-vous me dire si mon make.conf doit bien avoir cette forme :

CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -msse3 -O2 -pipe -fomit-frame-pointer"

sachant que j'installe un système 32bits


merci
Back to top
View user's profile Send private message
julroy67
Apprentice
Apprentice


Joined: 03 Feb 2007
Posts: 209
Location: Alsace >> /dev/null

PostPosted: Tue Apr 03, 2007 11:38 am    Post subject: Reply with quote

Oui, c'est bon, mais par contre je pense qu'au niveau du -march tu peux mettre mieux (en même temps je sais pas pour un Core 2 Duo ^^).
_________________
63n700 L1nux P0w44 !

Intel Core2Quad 6600
Abit FP-IN9 SLI Fatal1ty Nforce 580i
Nvidia GeForce 8600 GTS
2 Go RAM DDR800 Corsair

Actualité des jeux sous Linux
Back to top
View user's profile Send private message
Magic Banana
Veteran
Veteran


Joined: 13 Dec 2005
Posts: 1907
Location: Belo Horizonte, Minas Gerais, Brasil

PostPosted: Tue Apr 03, 2007 11:46 am    Post subject: Reply with quote

Effectivement. Tu peux mieux : il suffit de jeter un œil aux Safe CFlags :

Gentoo Wiki wrote:
Intel Core 2 Solo/Duo/Quad (Allendale, Conroe, Merom, Kentsfield) and Xeon 51xx/53xx (Woodcrest, Clovertown)

32 bit

CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"

Note: Intel officially recommend 'nocona' for 32 bit as well, why is this set to prescott? I know some gentoo discussion says it's faster, but this is what intel recommend.

64 bit

CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CXXFLAGS="${CFLAGS}"

Note: As of GCC 4.1.1, there are rumors that specifying 'nocona' for '-march' may degrade performance: forums.gentoo.org thread on subject
Note: Apple's gcc 4.0 used to build Mac OS X 10.4 for intel core and core 2 CPUs defaults to -march=nocona for both 32 bit and 64 bit

Bear in mind that all Core 2 Duo are dual-core CPUs so you can use MAKEOPTS="-j3" in your make.conf. This doesn't affect the code but might reduce compile times.
Note: As of GCC 4.3, you can set -march to "core2". This also enables the SSSE3 instruction set, also new in 4.3. However, gcc 4.3 is only available in the gentoo 'toolchain' overlay and given it's stability level (pre-alpha) you'd be mad to use that right now.
Back to top
View user's profile Send private message
Ascodas
Apprentice
Apprentice


Joined: 18 Nov 2004
Posts: 259

PostPosted: Tue Apr 03, 2007 11:46 am    Post subject: Reply with quote

Sur cette page, il y a plusieurs exemples dits "safe".

EDIT: un peu grilled quand même ... :D
Back to top
View user's profile Send private message
Mickael
Advocate
Advocate


Joined: 05 Sep 2005
Posts: 2383
Location: ~Belfort! - France - EU

PostPosted: Tue Apr 03, 2007 12:25 pm    Post subject: Reply with quote

En fait, tu dois également regardé la configuration de ton make.conf en fonction de la version de gcc que tu as installé. Dans son journal, Dirtyepic (dev gentoo) l'explique très bien à partir de ses échanges avec H.J développeur intel et à partir de la mailing liste de gcc : extrait :
Quote:
So, final answer. If you're using GCC 4.1, use -march=prescott for Intel Core Solo/Duo and -march=nocona (and an amd64 profile) for Core 2 Solo/Duo.

et donc avec gcc-4.2 :
Quote:
For GCC 4.2, a Core Solo/Duo should use -march=prescott -mtune=generic, and Core 2 Solo/Duo should be set to -march=nocona -mtune=generic. GCC trunk adds -march=core2 and support for the SSSE3 instruction set, but that won't be out for quite a while yet. etcetc


Le lien, mais cela avait déjà été expliqué dans ce forum il y 2/3/4 mois à peu près.
_________________
À LIRE : COMMENT POSTER ET OBTENIR DE L'AIDE ?
Qui suis-je ? Bon j'ai relu, comme d'habitude, je suis bon a rien le vendredi
Qui suis-je ? Je ne serai jamais modo
Back to top
View user's profile Send private message
Mickael
Advocate
Advocate


Joined: 05 Sep 2005
Posts: 2383
Location: ~Belfort! - France - EU

PostPosted: Wed Apr 04, 2007 9:05 am    Post subject: Reply with quote

Tient un poste qui en donne encore un peu plus dans la partie Hardware du forum.

EDIT : Vas falloir faire un TIP dans le forum, tout le monde s'embrouille avec ces core / core2

http://www.intel.com/products/processor/manuals/index.htm
_________________
À LIRE : COMMENT POSTER ET OBTENIR DE L'AIDE ?
Qui suis-je ? Bon j'ai relu, comme d'habitude, je suis bon a rien le vendredi
Qui suis-je ? Je ne serai jamais modo
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French 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