View previous topic :: View next topic |
Author |
Message |
K0byB0y n00b
Joined: 01 Mar 2003 Posts: 56 Location: New York, NY
|
Posted: Wed Nov 26, 2003 3:51 am Post subject: distcc and multiple different processors |
|
|
I'm thinking about using distcc with different types of processors. My main Linux box is running on a P4 but I want to use a box that has an Athlon chip in it. I want to have gcc produce highly optimized P4 code and this is my question. Would the Athon be able to produce P4 code with gcc ? _________________ perl -e 'print pack("H*", "4B6F6279426F79407961686F6F2E636F6D")' |
|
Back to top |
|
|
ckdake l33t
Joined: 10 Apr 2003 Posts: 889 Location: Atlanta, GA
|
Posted: Wed Nov 26, 2003 4:05 am Post subject: |
|
|
most certainly. I have my P2 450 compile with the help of my AMD XP2600+. Works great if ya ask me. _________________ http://ckdake.com/ |
|
Back to top |
|
|
sparks Guru
Joined: 05 Mar 2003 Posts: 331 Location: Nashville, TN
|
Posted: Wed Nov 26, 2003 4:14 am Post subject: |
|
|
yes, that's not a problem just make sure that you are using the same version of gcc if not things could fail. _________________ True trade is honest, but not merciful. Politics is dishonest, no matter how merciful... and war is neither honest nor merciful.... therefore, choose trade above politics, but politics above war. |
|
Back to top |
|
|
ebrostig Bodhisattva
Joined: 20 Jul 2002 Posts: 3152 Location: Orlando, Fl
|
Posted: Wed Nov 26, 2003 11:01 pm Post subject: |
|
|
And to explain why this works:
The remote machine (Athlon) receives pre-processes c-code from the original host along with the compiler flags to compile it for the right architecture. Hence, as long as the CPU is an x86 type CPU, it will work. You can't use 1 PC with an x86 CPU and another box with a PPC CPU for instance, they need to be the same type.
Erik _________________ 'Yes, Firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.' |
|
Back to top |
|
|
andrew_j_w Guru
Joined: 28 Jun 2003 Posts: 534 Location: York, UK
|
Posted: Thu Nov 27, 2003 9:30 am Post subject: |
|
|
ebrostig wrote: | And to explain why this works:
The remote machine (Athlon) receives pre-processes c-code from the original host along with the compiler flags to compile it for the right architecture. Hence, as long as the CPU is an x86 type CPU, it will work. You can't use 1 PC with an x86 CPU and another box with a PPC CPU for instance, they need to be the same type.
Erik |
I think you could if you had a cross compiling gcc on the PPC box. Setting up a cross compiler is whole heap of nastyness though so best not to go there... |
|
Back to top |
|
|
gongloo n00b
Joined: 01 Nov 2002 Posts: 19 Location: Boston, MA, USA
|
Posted: Sat Feb 14, 2004 3:19 am Post subject: |
|
|
I have a P4 1.8 HT box doing half the work for my 867Mhz Powerbook. Works great for me!
emerge crossdev. enjoy!
Note: I ended up giving the P4 12 jobs at a time - this seemed optimum for LAN connection and lag, etc. |
|
Back to top |
|
|
|