LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 09-01-2003, 02:34 PM   #1
Gill Bates
Member
 
Registered: Aug 2003
Location: the far side
Distribution: OpenSuSe 10.2, Mac OS X Tiger
Posts: 380

Rep: Reputation: 30
gentoo k7


there is a gentoo distro optimised for k7 cpus, isn't that the same as compiling the software to i686 and setting the kernel to run on k7 chips?
 
Old 09-01-2003, 02:49 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
gentoo is compiled from source, so is optimized for whatever cpu it is running on....
 
Old 09-01-2003, 08:53 PM   #3
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 47
While Athlons and Pentiums are both i686 compatable, they are each slightly different.

So a compiler can take advantage of specific optimizations for each processor. SSE2 and 3DNow are good examples.

Remember, AMDs processors shoot lots of data through short pipes, and Intel just makes the pipes bigger. They are different.
 
Old 09-02-2003, 03:18 AM   #4
Gill Bates
Member
 
Registered: Aug 2003
Location: the far side
Distribution: OpenSuSe 10.2, Mac OS X Tiger
Posts: 380

Original Poster
Rep: Reputation: 30
is there a way to compile source code for k7 specifically and not just i686?
 
Old 09-02-2003, 03:28 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you mean athlon-xp or such? well you should be defining correct compiler flags in /etc/make.conf,which is very well commented to help you.
 
Old 09-02-2003, 04:02 AM   #6
LSD
Member
 
Registered: Jan 2003
Location: Northam, W.A., Australia
Distribution: Gentoo ~x86
Posts: 321

Rep: Reputation: 31
Code:
CFLAGS="-mcpu=athlon -march=athlon -O3 -pipe"
should be enough to get the results he wants (depending on which type of Athlon you have, substitute athlon-xp, athlon-mp or athlon-tbird as needed. Avoid athlon-4 as this apparently generates invalid SSE instructions). although it's best to take care when specifying -march as this'll break compatibility with otehr CPUs although that shouldn't be much of a problem if the binaries you're creating are only ever going to be run on the one system.
 
Old 09-02-2003, 06:31 AM   #7
Gill Bates
Member
 
Registered: Aug 2003
Location: the far side
Distribution: OpenSuSe 10.2, Mac OS X Tiger
Posts: 380

Original Poster
Rep: Reputation: 30
wow, thanks guys
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I start installing stage 3 of gentoo from universal gentoo 2005-1? kazuya1977 Linux - General 1 11-11-2005 10:30 AM
pkg-config error with emerge -aD gnome-python on Gentoo 2.6.9-gentoo-r6 ghrellin Linux - Software 2 12-22-2004 06:37 PM
Please help. Gentoo: Emerge gentoo-dev-sources fails sendas4 Linux - Newbie 3 07-19-2004 11:44 AM
gentoo file manager install issues (not Gentoo) windeath Fedora 2 03-01-2004 07:17 PM
Dual boot w/ Gentoo/xp pro vs. gentoo-invalid partition table bobbear Linux - Software 3 02-10-2004 04:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 08:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration