View previous topic :: View next topic |
Author |
Message |
flammenflitzer Advocate
Joined: 25 Nov 2003 Posts: 3488 Location: Berlin
|
Posted: Fri Jan 13, 2006 8:24 am Post subject: Cflags |
|
|
Hallo
Ich hatte bis jetzt Code: | CFLAGS="-march=athlon64 -O2 -pipe" |
Ich habe aber gelesen, daß man auch Code: | CFLAGS="-mtune=k8 -march=athlon64 -O2 -pipe" | benutzten kann. Was bringt das? Und ist das so in Ordnug, oder muß es heißen Code: | CFLAGS="-mtune=k8 -march=k8 | bzw. Code: | CFLAGS="-mtune=athlon64 -march=athlon64 | ?
Last edited by flammenflitzer on Fri Jan 13, 2006 1:44 pm; edited 1 time in total |
|
Back to top |
|
|
Treborius Guru
Joined: 18 Oct 2005 Posts: 585 Location: Berlin
|
Posted: Fri Jan 13, 2006 8:29 am Post subject: |
|
|
kannst du machen, bringt aber garnix, da imho mtune nur bei cross-compiling wirkt
wenn du ganz normal mit gentoo arbeitest wird mtune einfach übergangen, bei k8 usw kann ich dir nicht helfen hatte bisher nur ix86'er |
|
Back to top |
|
|
flammenflitzer Advocate
Joined: 25 Nov 2003 Posts: 3488 Location: Berlin
|
Posted: Fri Jan 13, 2006 9:14 am Post subject: |
|
|
Danke
Wäre noch interessant zu wissen, welcher Unterschied zwischen athlon64 und k8 besteht. |
|
Back to top |
|
|
ConiKost Developer
Joined: 11 Jan 2005 Posts: 1365
|
Posted: Fri Jan 13, 2006 10:17 am Post subject: |
|
|
Meines wissen gibt es keinen ...
k8 = athlon64 |
|
Back to top |
|
|
Anarcho Advocate
Joined: 06 Jun 2004 Posts: 2970 Location: Germany
|
Posted: Fri Jan 13, 2006 11:06 am Post subject: |
|
|
k8 und athlon64 sind die gleichen Flags. _________________ ...it's only Rock'n'Roll, but I like it! |
|
Back to top |
|
|
flammenflitzer Advocate
Joined: 25 Nov 2003 Posts: 3488 Location: Berlin
|
Posted: Fri Jan 13, 2006 1:45 pm Post subject: |
|
|
Danke
MfG |
|
Back to top |
|
|
derflo Tux's lil' helper
Joined: 12 Jan 2006 Posts: 77
|
Posted: Fri Jan 13, 2006 2:43 pm Post subject: |
|
|
Hallo erstmal
Ist zwar mein erster Post, lese aber schon lange mit.
Sicher?
Ich habe einen 32Bit Prozessor der aber als k8 deklariert ist */ Mobile Sempron */ |
|
Back to top |
|
|
Anarcho Advocate
Joined: 06 Jun 2004 Posts: 2970 Location: Germany
|
Posted: Fri Jan 13, 2006 3:19 pm Post subject: |
|
|
Ja.
Aus der manpage von gcc:
Quote: | -mtune=cpu-type
Tune to cpu-type everything applicable about the generated code, except for the ABI and the set of available instructions. The choices for cpu-type are:
[...]
k8, opteron, athlon64, athlon-fx
AMD K8 core based CPUs with x86-64 instruction set support. (This supersets MMX, SSE, SSE2, 3dNOW!, enhanced 3dNOW! and 64-bit instruction set extensions.) |
_________________ ...it's only Rock'n'Roll, but I like it! |
|
Back to top |
|
|
andix Apprentice
Joined: 10 Jul 2004 Posts: 263 Location: Eisenstadt, Austria
|
Posted: Fri Jan 13, 2006 3:44 pm Post subject: |
|
|
Ein -msse3 sollte man so weit ich weiß noch setzten falls der Prozessor das unterstützt. Das tun alle neuen Athlon64/Opteron. |
|
Back to top |
|
|
derflo Tux's lil' helper
Joined: 12 Jan 2006 Posts: 77
|
Posted: Fri Jan 13, 2006 11:07 pm Post subject: |
|
|
@Anarcho
Hm, stimmt, mein Prozzi ist wohl so ein sonderding. |
|
Back to top |
|
|
|