Re: [gentoo-user] WHAT IS Gentoo architecture for Pentium4 Prescott-2M

2006-12-19 Thread Statux
On Mon, 2006-12-18 at 22:35 -0600, Boyd Stephen Smith Jr. wrote:

 x86_64 is the generic name for amd64, emt64, and x64 (see below) so that is 
 correct for the CHOST setting for that architecture.  Chips using that 
 architecture are also generally happy running as a x86 CHOST.
 
 For Itanium, the correct CHOST is (IIRC) ia64, and I'm not sure how well 
 Gentoo supports it.

Ah yes. It's been a while. Trying to piece most of this together from
memory :)

-- 
Statux [EMAIL PROTECTED]


signature.asc
Description: This is a digitally signed message part


Re: [gentoo-user] WHAT IS Gentoo architecture for Pentium4 Prescott-2M

2006-12-18 Thread Andrew Gaydenko
Statux,

Thanks!

=== On Monday 18 December 2006 02:44, Statux wrote: ===
...
If you want to use EM64T, it's amd64 and -march=nocona in the CFLAGS.

But If I don't want to use EMT64 but have CPU with EM64T (say, it is
Pentium D) - am I forced to use 'amd64' artch? Or - can I use 'x86' with
such 64-bit CPU? - all will work as normal 32-bit system, when
'-march=prescott' is selected. Is it so? And as for, say, Pentium D 925,
it has 'Presler' cores rather 'Prescott-2M' for Pentium4 630.

Sorry for these question - I have tried to dig in the problem, but all
silently suppose I must already know something :-)


Andrew
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] WHAT IS Gentoo architecture for Pentium4 Prescott-2M

2006-12-18 Thread Alan McKinnon
On Monday 18 December 2006 09:58, Andrew Gaydenko wrote:
 Statux,

 Thanks!

 === On Monday 18 December 2006 02:44, Statux wrote: ===
 ...

 If you want to use EM64T, it's amd64 and -march=nocona in the
  CFLAGS.

 But If I don't want to use EMT64 but have CPU with EM64T (say, it is
 Pentium D) - am I forced to use 'amd64' artch? Or - can I use 'x86'
 with such 64-bit CPU? - all will work as normal 32-bit system, when
 '-march=prescott' is selected. Is it so? And as for, say, Pentium D
 925, it has 'Presler' cores rather 'Prescott-2M' for Pentium4 630.

em64t and amd64 are the same thing. Essentially, AMD came out with a 64 
bit instruction set for their chips. After a few years market forces 
caused Intel to implement the same instruction set for their chips, and 
Intell called this em64t.

The point being, AMD 64 bit code runs on Intel non-Itanium 64 bit chips 
just fine, the same way that AMD 32 bit chips execute Intel 32 bit code 
just fine. There are some small differences in these two architectures, 
but these differences are accounted for in other places and you don't 
have to concern yourself with them.

alan
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] WHAT IS Gentoo architecture for Pentium4 Prescott-2M

2006-12-18 Thread Boyd Stephen Smith Jr.
On Monday 18 December 2006 21:44, Statux [EMAIL PROTECTED] wrote 
about 'Re: [gentoo-user] WHAT IS Gentoo architecture forPentium4
Prescott-2M':

 However, I had always been told to not use x86_64 (CHOST) unless it was
 an Itanium. (Can anyone else add to this?).

You're just plain wrong.  :P

x86_64 is the generic name for amd64, emt64, and x64 (see below) so that is 
correct for the CHOST setting for that architecture.  Chips using that 
architecture are also generally happy running as a x86 CHOST.

For Itanium, the correct CHOST is (IIRC) ia64, and I'm not sure how well 
Gentoo supports it.

 EM64T should always use nocona in the CFLAGS for 64bit.

EMT64 and AMD64 are the same technology, just different marketing names. 
X64 is another name you'll see is some of Sun's literature.  In any case, 
the -march setting is CPU specific, if your CPU isn't specificly mentioned 
as supported under a -march setting, you could produce broken executables.

-- 
If there's one thing we've established over the years,
it's that the vast majority of our users don't have the slightest
clue what's best for them in terms of package stability.
-- Gentoo Developer Ciaran McCreesh


pgpGFg7DVZOAS.pgp
Description: PGP signature


[gentoo-user] WHAT IS Gentoo architecture for Pentium4 Prescott-2M

2006-12-17 Thread Andrew Gaydenko
Hi!

What is Gentoo architecture for this CPU? -

Pentium4 630 (3.00ГГц, 2МБ, 800МГц, EM64T) Socket775, Prescott-2M core.

I have not found here (http://gentoo-wiki.com/Safe_Cflags) this CPU core.
For Prescott it is 'x86'. For some CPUs with EM64T it is 'amd64'. Where
is a truth? :-)

If the answer is 'amd64' - there are two additional question:

- does it mean all modern Intell CPUs has 'amd64' architecture? They all
  have EM64T.

- [OT] which CPU core is better? Pentium4/Prescott-2M or Pentium D 9xx? Say,
  L2 cache is 2MB and 2MB*2 respectively.




Thanks in advance!
Andrew
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] WHAT IS Gentoo architecture for Pentium4 Prescott-2M

2006-12-17 Thread Statux
[Pardon me if I've botched any information. Comments follow.]

On Sun, 2006-12-17 at 23:04 +0300, Andrew Gaydenko wrote:
 Hi!
 
 What is Gentoo architecture for this CPU? -
 
 Pentium4 630 (3.00ГГц, 2МБ, 800МГц, EM64T) Socket775, Prescott-2M core.

If you want to use EM64T, it's amd64 and -march=nocona in the CFLAGS. Do
a little research about the available amd64 profiles. Some allow for a
pure 64bit system and some allow for both 64bit and 32bit binaries to be
used (I think it's called multilib). I tried using EM64T with my 531 but
ran into an issue with the X server crashing out and causing a system
reboot on exit. I didn't really have the patience or the need for EM64T
functionality (it was just for fun at the time) so I went back to a
32bit setup using x86 and -march=prescott

 
 I have not found here (http://gentoo-wiki.com/Safe_Cflags) this CPU core.
 For Prescott it is 'x86'. For some CPUs with EM64T it is 'amd64'. Where
 is a truth? :-)

So far, it's amd64 for EM64T. x86 is 32bit. Prescott is 32bit.

 
 If the answer is 'amd64' - there are two additional question:
 
 - does it mean all modern Intell CPUs has 'amd64' architecture? They all
   have EM64T.

amd64 is used simply because it has everything needed to make EM64T
work. amd64 is more or less a 64bit x86-compatible architecture and is
adequate for a stable EM64T system as long as you use -march=nocona in
the CFLAGS or else you won't end up really using EM64T. Nocona is 64bit
and if you want 64bit you just call your prescott a nocona and voila -
for the most part.

 
 - [OT] which CPU core is better? Pentium4/Prescott-2M or Pentium D 9xx? Say,
   L2 cache is 2MB and 2MB*2 respectively.

Pentium D is better. 2 CPU cores.

 Thanks in advance!
 Andrew

-- 
Statux [EMAIL PROTECTED]


signature.asc
Description: This is a digitally signed message part