Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[gcc,CFLAGS] j'aimerait avoir des avis sur -mfpmath=sse,387
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
lithium
Apprentice
Apprentice


Joined: 03 Nov 2002
Posts: 208
Location: Lyon, France

PostPosted: Sun May 02, 2004 4:00 pm    Post subject: [gcc,CFLAGS] j'aimerait avoir des avis sur -mfpmath=sse,387 Reply with quote

J'ai vue cette option sur l'excelente page de Leander256 (http://leander256.free.fr/gentoo/).
J'aimerait savoir si quelqu'un l'a testée, si c'est stable et si le gain est notable.

Mes CFLAGS actuels :
-Os -march=athlon-xp -mfpmath=sse -fPIC -fomit-frame-pointer -pipe
(pour un bi-athlon 2400+ avec une glibc nptl)
Back to top
View user's profile Send private message
navidson
Apprentice
Apprentice


Joined: 30 May 2003
Posts: 235
Location: entre mon bureau et mon lit

PostPosted: Sun May 02, 2004 4:12 pm    Post subject: Reply with quote

c un long débat .........

perso je sais pas mais ce que je sais c que certaines options dont justement celle dont tu parles font planter la compilation de certains programmes (genre gstreamer-plugins ou plus recemment xine-lib).

maitenant tu peux essayer tu risques pas grand chose .......
_________________
Il semblerait que cela fait un peu trop longtemps que des têtes n'ont pas été plantées au bout des piques.
Il semblerait que je suis loin d'être le seul à partager cette impatience.
Maurice G Dantec, a propos du TPI
Back to top
View user's profile Send private message
kernelsensei
Bodhisattva
Bodhisattva


Joined: 22 Feb 2004
Posts: 5619
Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)

PostPosted: Sun May 02, 2004 7:14 pm    Post subject: Reply with quote

Voila mes flags :
Code:

CFLAGS=" -g -pipe -march=pentium4 -mcpu=pentium4 -mfpmath=sse,387 -O2 -frename-registers -fomit-frame-pointer -ffast-math -fforce-addr"


Tout se compile (quelques rares exceptions qui sont reportees sur bugs.gentoo.org) et c'est stable !
_________________
$ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join'
Back to top
View user's profile Send private message
guilc
Bodhisattva
Bodhisattva


Joined: 15 Nov 2003
Posts: 3326
Location: Paris - France

PostPosted: Sun May 02, 2004 7:41 pm    Post subject: Reply with quote

Moi, j'utilises ça :
Quote:
CFLAGS="-march=pentium4 -Os -mcpu=pentium4 -msse2 -mfpmath=sse,387 -fomit-frame-pointer -ffast-math -funroll-loops -pipe


Tout compile, sauf xine-lib ou j'ai du enlever "-funroll-loops".
C'est stable, jamais eu aucun plantage (en ~x86). De la a dire si c'est plus performant, je sais pas, je n'ai jamais benché avec et sans...
_________________
Merci de respecter les règles du forum.

Mon site perso : https://www.xwing.info
Mon PORTDIR_OVERLAY : https://gentoo.xwing.info ou layman -a xwing
Back to top
View user's profile Send private message
lithium
Apprentice
Apprentice


Joined: 03 Nov 2002
Posts: 208
Location: Lyon, France

PostPosted: Sun May 02, 2004 8:59 pm    Post subject: Reply with quote

Je vais essayer ça alors, merci :)
Back to top
View user's profile Send private message
lithium
Apprentice
Apprentice


Joined: 03 Nov 2002
Posts: 208
Location: Lyon, France

PostPosted: Sun May 02, 2004 9:52 pm    Post subject: Reply with quote

vous connaissez un logiciel pour bien tester la FPU ? threader si possible ? :)
Back to top
View user's profile Send private message
lithium
Apprentice
Apprentice


Joined: 03 Nov 2002
Posts: 208
Location: Lyon, France

PostPosted: Sun May 09, 2004 5:08 pm    Post subject: Reply with quote

bon, j'ai recompiler le monde avec ces CFLAGS : CFLAGS="-Os -march=athlon-xp -mfpmath=sse,387 -fomit-frame-pointer -fPIC -pipe"

Et ça baigne, très stable jusqu'a maintenant, et je sent un bon gain de réactiviter.
Style a l'affichage du theme gdm industrial (en svg) en 1s au lieu de 5s :)
Back to top
View user's profile Send private message
kernelsensei
Bodhisattva
Bodhisattva


Joined: 22 Feb 2004
Posts: 5619
Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)

PostPosted: Sun May 09, 2004 5:21 pm    Post subject: Reply with quote

quel flag genere un code plus rapide ? -O2 ou bien -Os
_________________
$ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join'
Back to top
View user's profile Send private message
guilc
Bodhisattva
Bodhisattva


Joined: 15 Nov 2003
Posts: 3326
Location: Paris - France

PostPosted: Sun May 09, 2004 5:49 pm    Post subject: Reply with quote

Si je me trompe pas, en théorie, c'est -O2.
Mais -Os génère du code plus petit, donc dans la pratique, cela pourra empecher certains débordements de la pile, donc aller plus vite au final. Un peu comme il a déja été évoqué avec -O3/-Os, mais dans une moindre mesure, puisque le code -O2 reste plus petit que le code -O3
_________________
Merci de respecter les règles du forum.

Mon site perso : https://www.xwing.info
Mon PORTDIR_OVERLAY : https://gentoo.xwing.info ou layman -a xwing
Back to top
View user's profile Send private message
scout
Veteran
Veteran


Joined: 08 Mar 2003
Posts: 1991
Location: France, Paris en Semaine / Metz le W-E

PostPosted: Sun May 09, 2004 6:56 pm    Post subject: Reply with quote

guilc wrote:
Mais -Os génère du code plus petit, donc dans la pratique, cela pourra empecher certains débordements de la pile, donc aller plus vite au final.

Et aussi le fait que les lectures des executables sur le disque dur sont plus rapides (puisqu'il y a moins à lire)
_________________
http://petition.eurolinux.org/ - Petition against ePatents
L'essence de la finesse
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