View previous topic :: View next topic |
Author |
Message |
ninjabadger Apprentice
Joined: 23 Apr 2003 Posts: 270 Location: Scotland
|
Posted: Fri Nov 18, 2005 8:27 pm Post subject: Pentium II chroot on a pentium-m system [Solved] |
|
|
I am looking to deploy an gentoo installation on a pentium 2 system but build it on my pentium-m laptop (so it doesnt take 3 weeks). If i compile everything in the chroot as -march=pentium2 (or whatever the switch is) will the binaries run properly in my chroot.
Or should i just go for -march=i686 ? _________________ Is Microsoft Stronger?
No, no, no. Quicker, easier, more seductive.
Last edited by ninjabadger on Sun Nov 20, 2005 9:45 am; edited 1 time in total |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Fri Nov 18, 2005 8:42 pm Post subject: |
|
|
pentium2 is fine _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
talk is cheap. supply exceeds demand |
|
Back to top |
|
|
Bob P Advocate
Joined: 20 Oct 2004 Posts: 3355 Location: Jackass! Development Labs
|
Posted: Fri Nov 18, 2005 11:08 pm Post subject: |
|
|
yes. all new pentium processors are backward compatible with the pentium processors that came before them. _________________ .
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks |
|
Back to top |
|
|
ninjabadger Apprentice
Joined: 23 Apr 2003 Posts: 270 Location: Scotland
|
Posted: Sat Nov 19, 2005 11:11 am Post subject: |
|
|
Fantastic!
I knew P3 was compatible but was not sure on PII, thanks very much _________________ Is Microsoft Stronger?
No, no, no. Quicker, easier, more seductive. |
|
Back to top |
|
|
Bob P Advocate
Joined: 20 Oct 2004 Posts: 3355 Location: Jackass! Development Labs
|
|
Back to top |
|
|
pilla Bodhisattva
Joined: 07 Aug 2002 Posts: 7729 Location: Underworld
|
Posted: Sat Nov 19, 2005 4:24 pm Post subject: |
|
|
I'm not sure that a Pentium-m will be completely compatible with a Pentium-4, Bob P _________________ "I'm just very selective about the reality I choose to accept." -- Calvin |
|
Back to top |
|
|
Bob P Advocate
Joined: 20 Oct 2004 Posts: 3355 Location: Jackass! Development Labs
|
Posted: Sat Nov 19, 2005 4:39 pm Post subject: |
|
|
well, i guess that depends if you look at the subject in the perspective of the DATE that the processors were introduced, or the GENEALOGY of the processors themselves.
the Pentium-M might have been introduced after the Pentium 4, and i guess its possible that some P4 code might not run on a P3. i know that the Pentium-M code will run on a P4.
Technically speaking, the Pentium-M is a derivative of a Pentium 3. Its important for anyone with a P-M to know that. So that the original poster isn't confused, here's a snip from the GCC man pages that he should read on this topic:
http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html
Quote: |
3.17.13 Intel 386 and AMD x86-64 Options
These `-m' options are defined for the i386 and x86-64 family of computers:
-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:
i386
Original Intel's i386 CPU.
i486
Intel's i486 CPU. (No scheduling is implemented for this chip.)
i586, pentium
Intel Pentium CPU with no MMX support.
pentium-mmx
Intel PentiumMMX CPU based on Pentium core with MMX instruction set support.
i686, pentiumpro
Intel PentiumPro CPU.
pentium2
Intel Pentium2 CPU based on PentiumPro core with MMX instruction set support.
pentium3, pentium3m
Intel Pentium3 CPU based on PentiumPro core with MMX and SSE instruction set support.
pentium-m
Low power version of Intel Pentium3 CPU with MMX, SSE and SSE2 instruction set support. Used by Centrino notebooks.
pentium4, pentium4m
Intel Pentium4 CPU with MMX, SSE and SSE2 instruction set support.
prescott
Improved version of Intel Pentium4 CPU with MMX, SSE, SSE2 and SSE3 instruction set support.
nocona
Improved version of Intel Pentium4 CPU with 64-bit extensions, MMX, SSE, SSE2 and SSE3 instruction set support.
...
While picking a specific cpu-type will schedule things appropriately for that particular chip, the compiler will not generate any code that does not run on the i386 without the -march=cpu-type option being used.
-march=cpu-type
Generate instructions for the machine type cpu-type. The choices for cpu-type are the same as for -mtune. Moreover, specifying -march=cpu-type implies -mtune=cpu-type. |
my post could be considered correct if the reader ignored the date that the processors were introduced and followed "before" and "after" in the context of the processor evolution, or as they are listed in the man pages.
thanks for pointing out the need for clarification. my original comment could have come back to bite someone who didn't know better. _________________ .
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks |
|
Back to top |
|
|
pilla Bodhisattva
Joined: 07 Aug 2002 Posts: 7729 Location: Underworld
|
Posted: Sat Nov 19, 2005 6:02 pm Post subject: |
|
|
Now I agree with you _________________ "I'm just very selective about the reality I choose to accept." -- Calvin |
|
Back to top |
|
|
|