Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CPUinfo, chost, cflags
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
henrynick
Apprentice
Apprentice


Joined: 28 Jun 2004
Posts: 203
Location: longitude: 14° 25' latitude: 51° 10'

PostPosted: Wed Sep 08, 2004 10:17 am    Post subject: CPUinfo, chost, cflags Reply with quote

Hallo,

falls jemand mal etwas Zeit erübrigen kann - ich benötige eine Aussage zu den folgenden Werten für CHOST. Vorweg mal die CPUinfo (IBM Thinkpad 600x):
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 8
model name : Pentium III (Coppermine)
stepping : 3
cpu MHz : 647.755
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca
cmov pat pse36 mmx fxsr sse
bogomips : 1291.05

Ich habe folgendes in die make.conf geschrieben:
CFLAGS="-O2 -mcpu=i586 -fomit-frame-pointer"
CHOST="i586-pc-linux-gnu"

Meiner bescheidenen Erfahrung mit Gentoo und dem Handbuch nach sollte das funktionieren oder hat jemand noch eine Idee zur Verbesserung für ein Notebook, das alles können soll *grins*.
_________________
Gruß/greetings

HenryNick

--
go to work, send your kids to school
follow fashion, act normal
walk on the pavement, watch T.V.
save for your old age, obey the law
Repeat after me: I am free
Back to top
View user's profile Send private message
Aldo
Guru
Guru


Joined: 15 Jan 2003
Posts: 440
Location: Cologne, Germany

PostPosted: Wed Sep 08, 2004 10:30 am    Post subject: Re: CPUinfo, chost, cflags Reply with quote

henrynick wrote:
Ich habe folgendes in die make.conf geschrieben:
CFLAGS="-O2 -mcpu=i586 -fomit-frame-pointer"
CHOST="i586-pc-linux-gnu"


Ich würde "i686" bei beiden Angaben nehmen und statt "-mcpu" "-march" einsetzen.
Und bei den CFLAGS empfiehlt sich ein "-pipe".
_________________
Abit A-N78-HD
Phenom 9750
8 GB Ram
Linux 2.6.29-gentoo
FreeBSD 7.2
Back to top
View user's profile Send private message
Tuna
Guru
Guru


Joined: 19 Jul 2002
Posts: 485
Location: Berlin

PostPosted: Wed Sep 08, 2004 10:44 am    Post subject: Reply with quote

was spricht gegen -march=pentium3?
Back to top
View user's profile Send private message
henrynick
Apprentice
Apprentice


Joined: 28 Jun 2004
Posts: 203
Location: longitude: 14° 25' latitude: 51° 10'

PostPosted: Wed Sep 08, 2004 10:53 am    Post subject: Re: CPUinfo, chost, cflags Reply with quote

Danke - sozusagen sollte dann das hier drin stehen -

CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"

Kann man eigentlich noch mehr optimieren?
_________________
Gruß/greetings

HenryNick

--
go to work, send your kids to school
follow fashion, act normal
walk on the pavement, watch T.V.
save for your old age, obey the law
Repeat after me: I am free
Back to top
View user's profile Send private message
henrynick
Apprentice
Apprentice


Joined: 28 Jun 2004
Posts: 203
Location: longitude: 14° 25' latitude: 51° 10'

PostPosted: Wed Sep 08, 2004 11:00 am    Post subject: Reply with quote

@Tuna
Hallo - wahrscheinlich nichts :? , aber ich bin mir nicht so sicher, unter was ich meinen Proz. da einstufen soll. In den Vergleichstabellen, die ich gefunden habe steht entweder Pentium XYZ oder ix86 - jedenfalls war ich mir nicht sicher, was ich da verwenden kann.
Also kann ich auch so tun -... -march=pentium3 ... ?
_________________
Gruß/greetings

HenryNick

--
go to work, send your kids to school
follow fashion, act normal
walk on the pavement, watch T.V.
save for your old age, obey the law
Repeat after me: I am free
Back to top
View user's profile Send private message
Jlagreen
Apprentice
Apprentice


Joined: 19 Mar 2003
Posts: 211
Location: Baden-Württemberg, Germany

PostPosted: Wed Sep 08, 2004 11:13 am    Post subject: Reply with quote

Hi,

schau mal in diesen thread und probier das script zum erkennen der cflags aus, da deine cpu unter /proc/cpuinfo erkannt wird, sollte es funktionieren :wink:

https://forums.gentoo.org/viewtopic.php?t=202597&highlight=cflags

[EDIT]
kopiere das script aus dem zweiten post (markieren+kopieren) und paste es in nen text-editor und speichere es (bsp. cflags-info), dann führ folgendes als root aus
Code:

# chmod 777 cflags-info
# ./cflags-info

es sollte dir die cflags anzeigen und du kannst sie verwenden, hab das auf 2 rechnern getan und keinerlei probleme, da sie sich teilweise mit menen alten deckten und noch ein paar optionen mehr hatten 8)
_________________
Aktuelle Sys:
Dektop System
--> GF6800LE @ 12p/6v @ 415/900
-- >Think Linux, use Gentoo
Back to top
View user's profile Send private message
henrynick
Apprentice
Apprentice


Joined: 28 Jun 2004
Posts: 203
Location: longitude: 14° 25' latitude: 51° 10'

PostPosted: Wed Sep 08, 2004 11:21 am    Post subject: Reply with quote

@Jlagreen
Danke - ich habe einen ähnlichen Thread gefunden, der sich auf ein ähnliches Thema bezieht - äh, wie sag ich's jetzt :oops: - das script habe ich in eine Datei gepackt, nur ich bin (wie man unschwer an den beiden Nullen in meiner Forumseinstufung erkennen kann) mir nicht ganz sicher, wie ich es zum laufen bringen kann. Ist mir ja peinlich, aber ...
_________________
Gruß/greetings

HenryNick

--
go to work, send your kids to school
follow fashion, act normal
walk on the pavement, watch T.V.
save for your old age, obey the law
Repeat after me: I am free
Back to top
View user's profile Send private message
henrynick
Apprentice
Apprentice


Joined: 28 Jun 2004
Posts: 203
Location: longitude: 14° 25' latitude: 51° 10'

PostPosted: Wed Sep 08, 2004 11:39 am    Post subject: Reply with quote

@Sorry Jlagreen - ich hatte wohl ein kleines Browserproblem :roll: - ich habe nur die erste Hälfte Deiner Antwort gesehen - Danke für die ausführliche Anleitung. :D Ich teste das durch und gebe ein Rückmeldung.
Danke an alle.
_________________
Gruß/greetings

HenryNick

--
go to work, send your kids to school
follow fashion, act normal
walk on the pavement, watch T.V.
save for your old age, obey the law
Repeat after me: I am free
Back to top
View user's profile Send private message
Jlagreen
Apprentice
Apprentice


Joined: 19 Mar 2003
Posts: 211
Location: Baden-Württemberg, Germany

PostPosted: Wed Sep 08, 2004 11:47 am    Post subject: Reply with quote

ne hast du nicht, da ich etwa ne minute später die zweite hälfte EDIT gemacht habe, da ich mir dann den thread nochmal angeschaut habe und mir einfiel, wie ich es gemacht habe
_________________
Aktuelle Sys:
Dektop System
--> GF6800LE @ 12p/6v @ 415/900
-- >Think Linux, use Gentoo
Back to top
View user's profile Send private message
henrynick
Apprentice
Apprentice


Joined: 28 Jun 2004
Posts: 203
Location: longitude: 14° 25' latitude: 51° 10'

PostPosted: Wed Sep 08, 2004 1:11 pm    Post subject: Reply with quote

Hallo - funktioniert soweit ganz gut, nur - Fehlermeldungen wie folgt:
sed: -e expression #1, char. 44: Unterminnated ´s´ command
Could not run/locate "gcc"
expr: syntax error
expr: syntax error
-march=pentium3

Den 'Fehler' sed habe ich beseitigen können - Formatierung des Files, es bleibt jedoch folgende Fehlermeldung übrig:
Could not run/locate "gcc"
expr: syntax error
expr: syntax error
-march=pentium3
_________________
Gruß/greetings

HenryNick

--
go to work, send your kids to school
follow fashion, act normal
walk on the pavement, watch T.V.
save for your old age, obey the law
Repeat after me: I am free
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