Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
make.conf optimierung
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3491
Location: Berlin

PostPosted: Sun Dec 19, 2004 1:28 pm    Post subject: make.conf optimierung Reply with quote

Hallo
Früher habe ich immer hier nachgesehen:
http://www.freehackers.org/gentoo/gccflags/flag_gcc3.html
allerdings scheint das schon veraltet zu sein.
Kann jemand einen Link für amd64 posten?
Back to top
View user's profile Send private message
RealGeizt
l33t
l33t


Joined: 22 Apr 2003
Posts: 700

PostPosted: Sun Dec 19, 2004 1:56 pm    Post subject: Reply with quote

ich kann dir meine geben wenn du willst.
läuft alles fix und ohne probleme.

Code:
# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example
CFLAGS="-O2 -march=athlon64 -pipe -fomit-frame-pointer -funroll-loops"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
USE="3dnow avi dga dvd gtk2 icq java javascript mbox mmx network nvidia \
     openssh svga truetype-fonts type1-fonts X xchatdccserver xchatnogtk \
     xchattext xine"
FEATURES="sandbox"
ACCEPT_KEYWORDS="~amd64"
Back to top
View user's profile Send private message
Macumba
Tux's lil' helper
Tux's lil' helper


Joined: 13 Sep 2004
Posts: 112

PostPosted: Sun Dec 19, 2004 3:26 pm    Post subject: Reply with quote

schau dir mal die beiden Links an:

https://forums.gentoo.org/viewtopic.php?t=189250
http://www.ali3nx.info/make.conf

wobei die make.conf aus diesem thread ist.
_________________
Code:
dd if=/dev/urandom of=/dev/speech

ogg - mp3
Back to top
View user's profile Send private message
Shagrath
n00b
n00b


Joined: 24 Aug 2004
Posts: 32
Location: Vor meinem Monitor ^_^

PostPosted: Sun Dec 19, 2004 3:35 pm    Post subject: Reply with quote

http://home.arcor.de/damiensyrax/tmp/make.conf_amd64

Meine fuer x86_64.. ist uebrigens strikt auf KDE ausgelegt. Allerdings glaub ich, dass ich schon ziemlich am Limit fuer kaputten Code bin.

Diese make.conf aus dem Thread erscheint mir irgendwie wertlos. march=tbird bei einem k8 :O?
Back to top
View user's profile Send private message
Macumba
Tux's lil' helper
Tux's lil' helper


Joined: 13 Sep 2004
Posts: 112

PostPosted: Sun Dec 19, 2004 4:56 pm    Post subject: Reply with quote

soll er ja nur angucken,
da sind noch enige andere interessante sachen drin ldflags u.so
_________________
Code:
dd if=/dev/urandom of=/dev/speech

ogg - mp3
Back to top
View user's profile Send private message
Linuxpeter
Guru
Guru


Joined: 28 May 2004
Posts: 403
Location: Dresden, Germany

PostPosted: Sun Dec 19, 2004 5:05 pm    Post subject: Reply with quote

Hier mal meine (von AMD) empfehlenen CFLAGS für den Athlon64 und gcc-3.4.x:
Code:

CFLAGS="-O3 -march=athlon64 -ffast-math -funroll-all-loops -funit-at-a-time -fpeel-loops -ftracer -funswitch-loops -fomit-frame-pointer -pipe"

Bisher habe ich damit keine Probleme gehabt.
_________________
Regards, Linuxpeter
Wenn "Windows" die Antwort ist, war es eine dumme Frage. ;-)
Is "Windows" the answer, then it was a stupid question. ;-)
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Sun Dec 19, 2004 5:14 pm    Post subject: Reply with quote

Nein, AMD empfiehlt -ffast-math nicht
Back to top
View user's profile Send private message
RealGeizt
l33t
l33t


Joined: 22 Apr 2003
Posts: 700

PostPosted: Sun Dec 19, 2004 5:19 pm    Post subject: Reply with quote

Linuxpeter wrote:
Hier mal meine (von AMD) empfehlenen CFLAGS für den Athlon64 und gcc-3.4.x:
Code:

CFLAGS="-O3 -march=athlon64 -ffast-math -funroll-all-loops -funit-at-a-time -fpeel-loops -ftracer -funswitch-loops -fomit-frame-pointer -pipe"

Bisher habe ich damit keine Probleme gehabt.


sieht ziemlich aggressiv aus finde ich...aber wenns läuft :)
Back to top
View user's profile Send private message
Linuxpeter
Guru
Guru


Joined: 28 May 2004
Posts: 403
Location: Dresden, Germany

PostPosted: Sun Dec 19, 2004 6:18 pm    Post subject: Reply with quote

http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/32035.pdf, Seite 29, Kapitel 3.8.3, Table 7
Daher werde ich meine CFLAGS auch erstmal so lassen :wink:
_________________
Regards, Linuxpeter
Wenn "Windows" die Antwort ist, war es eine dumme Frage. ;-)
Is "Windows" the answer, then it was a stupid question. ;-)
Back to top
View user's profile Send private message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3491
Location: Berlin

PostPosted: Tue Dec 21, 2004 2:37 pm    Post subject: Reply with quote

-march=athlon64 ? in dem Dokument ist aber die Rede von -march=k8 ????
Back to top
View user's profile Send private message
Linuxpeter
Guru
Guru


Joined: 28 May 2004
Posts: 403
Location: Dresden, Germany

PostPosted: Tue Dec 21, 2004 3:16 pm    Post subject: Reply with quote

k8 = athlon64 = opteron
_________________
Regards, Linuxpeter
Wenn "Windows" die Antwort ist, war es eine dumme Frage. ;-)
Is "Windows" the answer, then it was a stupid question. ;-)
Back to top
View user's profile Send private message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3491
Location: Berlin

PostPosted: Fri Dec 24, 2004 8:58 am    Post subject: Reply with quote

/etc/make.conf.example

# Decent examples:

#amd64 CPU types supported in gcc-3.4: athlon64, opteron, k8

#CFLAGS="-mtune=k8 -O2 -pipe"
#CFLAGS="-march=athlon64 -O2 -pipe"

Wenn ich das richtig verstehe muß bei Verwendung von k8
CFLAGS="-mtune=k8 -O2 -pipe"
und bei Verwendung von athlon64
CFLAGS="-march=athlon64 -O2 -pipe"
eingetragen werden.
Dann wäre CFLAGS="-march=k8 -O2 -pipe" also falsch? Oder wird hier empfohlen
CFLAGS="-mtune=k8 -O2 -pipe"
CFLAGS="-march=athlon64 -O2 -pipe"
einzutragen?
Back to top
View user's profile Send private message
c07
Veteran
Veteran


Joined: 25 Oct 2002
Posts: 1091

PostPosted: Fri Dec 24, 2004 11:27 am    Post subject: Reply with quote

flammenflitzer wrote:
Dann wäre CFLAGS="-march=k8 -O2 -pipe" also falsch?

Nein. "k8" ist ebenso wie "opteron" und "athlon-fx" einfach ein Synonym für "athlon64". -march sagt, dass Code erzeugt werden soll, der auf anderen CPUs nicht unbedingt laufen muss, während -mtune (bzw. -mcpu bis gcc 3.3.x) portable Optimierungen (innerhalb der Prozessorfamilie) bewirkt und bei -march inklusiv ist. Nachdem bei Gentoo normalerweise Code speziell für einen bestimmten Rechner erzeugt werden soll, ist das erste Beispiel in der Regel nicht wirklich sinnvoll.
Back to top
View user's profile Send private message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3491
Location: Berlin

PostPosted: Fri Dec 24, 2004 11:52 am    Post subject: Reply with quote

Danke
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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