View previous topic :: View next topic |
Author |
Message |
lithium Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/11893354574412ce131ad2c.png)
Joined: 03 Nov 2002 Posts: 208 Location: Lyon, France
|
Posted: Sun May 02, 2004 4:00 pm Post subject: [gcc,CFLAGS] j'aimerait avoir des avis sur -mfpmath=sse,387 |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
navidson Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/15121999240410a1c6f57a.jpg)
Joined: 30 May 2003 Posts: 235 Location: entre mon bureau et mon lit
|
Posted: Sun May 02, 2004 4:12 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
kernelsensei Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/21126704545e4a5f9ae5c9.jpg)
Joined: 22 Feb 2004 Posts: 5619 Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)
|
Posted: Sun May 02, 2004 7:14 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
guilc Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/190892864153fcc64a2a920.jpg)
Joined: 15 Nov 2003 Posts: 3326 Location: Paris - France
|
Posted: Sun May 02, 2004 7:41 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
lithium Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/11893354574412ce131ad2c.png)
Joined: 03 Nov 2002 Posts: 208 Location: Lyon, France
|
Posted: Sun May 02, 2004 8:59 pm Post subject: |
|
|
Je vais essayer ça alors, merci ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
lithium Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/11893354574412ce131ad2c.png)
Joined: 03 Nov 2002 Posts: 208 Location: Lyon, France
|
Posted: Sun May 02, 2004 9:52 pm Post subject: |
|
|
vous connaissez un logiciel pour bien tester la FPU ? threader si possible ? ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
lithium Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/11893354574412ce131ad2c.png)
Joined: 03 Nov 2002 Posts: 208 Location: Lyon, France
|
Posted: Sun May 09, 2004 5:08 pm Post subject: |
|
|
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 ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kernelsensei Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/21126704545e4a5f9ae5c9.jpg)
Joined: 22 Feb 2004 Posts: 5619 Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)
|
Posted: Sun May 09, 2004 5:21 pm Post subject: |
|
|
quel flag genere un code plus rapide ? -O2 ou bien -Os _________________ $ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join' |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
guilc Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/190892864153fcc64a2a920.jpg)
Joined: 15 Nov 2003 Posts: 3326 Location: Paris - France
|
Posted: Sun May 09, 2004 5:49 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
scout Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/12983883544208161274b34.png)
Joined: 08 Mar 2003 Posts: 1991 Location: France, Paris en Semaine / Metz le W-E
|
Posted: Sun May 09, 2004 6:56 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|