Re: [gentoo-user] switching CPU's -- what strange things do I need?

2008-01-25 Thread Andrey Falko
On Jan 25, 2008 12:44 PM, John covici <[EMAIL PROTECTED]> wrote:

> on Friday 01/25/2008 Andrey Falko([EMAIL PROTECTED]) wrote
>  > On Jan 25, 2008 10:00 AM, John covici <[EMAIL PROTECTED]> wrote:
>  >
>  > > Hi folks.  I right now have my CCFLAGS set to CFLAGS="-O2
>  > > -mtune=athlon-xp -pipe" -- now I am getting one of those new Intel
>  > > e8400 CPU's and so I have two questions.
>  > >
>  > > What should I change my CCFLAGS to -- and do I have to recompile the
>  > > whole system after this is done or what?
>  >
>  >
>  > I've done this before. I moved from an old Intel 3.06 Ghz to a new
> Athlon64
>  > 4600+. I did *not* change flags before the move from system to system.
> After
>  > the move, however,  I  changed my -march flag (in your case -mtune,
> which is
>  > equivalent) and recompiled everything to have the change take effect.
>  >
>  > In your case, move the system from machine to machine, then change your
>  > -mtune to: -mtune=nocona (see
>  >
> http://gcc.gnu.org/onlinedocs/gcc-4.2.2/gcc/i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options
> )
>  > . When you are done with that recompile everything: emerge -e world
>  >
> Thanks all -- I have a 32-bit profile, so I guess I will not be able
> to use ncona -- is this correct?
>
> No. nocona will not generate 64-bit code with a 32-bit profile. nocona is
more "native" to your cpu, but I am sure that you won't get much of a boost
using it over prescott.

>
> --
> Your life is like a penny.  You're going to lose it.  The question is:
> How do
> you spend it?
>
> John Covici
> [EMAIL PROTECTED]
> --
> gentoo-user@lists.gentoo.org mailing list
>
>


Re: [gentoo-user] switching CPU's -- what strange things do I need?

2008-01-25 Thread Neil Walker

John covici wrote:

Thanks all -- I have a 32-bit profile, so I guess I will not be able
to use ncona -- is this correct?
  


No, it's not correct. "march=nocona" is just as valid under 32 bits as 
64. It simply defines the capabilities of your processor to gcc. It does 
NOT force gcc to produce 64 bit code. With later versions of gcc, 
"march=native" may be a better choice but, with the current stable gcc, 
"march=nocona" is the best choice.



Be lucky,

Neil


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


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



Re: [gentoo-user] switching CPU's -- what strange things do I need?

2008-01-25 Thread Ricardo Saffi Marques
I really don't know. I mean, I particularly always stick to Gentoo Safe
Cflags, but I know people that use a 32-bit profile and use -march=nocona.
Let's see what other ppl have to say.

On 1/25/08, John covici <[EMAIL PROTECTED]> wrote:
>
> on Friday 01/25/2008 Andrey Falko([EMAIL PROTECTED]) wrote
> > On Jan 25, 2008 10:00 AM, John covici <[EMAIL PROTECTED]> wrote:
> >
> > > Hi folks.  I right now have my CCFLAGS set to CFLAGS="-O2
> > > -mtune=athlon-xp -pipe" -- now I am getting one of those new Intel
> > > e8400 CPU's and so I have two questions.
> > >
> > > What should I change my CCFLAGS to -- and do I have to recompile the
> > > whole system after this is done or what?
> >
> >
> > I've done this before. I moved from an old Intel 3.06 Ghz to a new
> Athlon64
> > 4600+. I did *not* change flags before the move from system to system.
> After
> > the move, however,  I  changed my -march flag (in your case -mtune,
> which is
> > equivalent) and recompiled everything to have the change take effect.
> >
> > In your case, move the system from machine to machine, then change your
> > -mtune to: -mtune=nocona (see
> >
> http://gcc.gnu.org/onlinedocs/gcc-4.2.2/gcc/i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options
> )
> > . When you are done with that recompile everything: emerge -e world
> >
> Thanks all -- I have a 32-bit profile, so I guess I will not be able
> to use ncona -- is this correct?
>
>
> --
> Your life is like a penny.  You're going to lose it.  The question is:
> How do
> you spend it?
>
>  John Covici
>  [EMAIL PROTECTED]
> --
> gentoo-user@lists.gentoo.org mailing list
>
>


-- 
Ricardo Saffi Marques
Laboratório de Administração e Segurança de Sistemas (LAS/IC)
Universidade Estadual de Campinas (UNICAMP)
Cell: +55 (19) 8128-0435
Skype: ricardo_saffi_marques
Website: http://www.rsaffi.com


Re: [gentoo-user] switching CPU's -- what strange things do I need?

2008-01-25 Thread Justin
Thats correct and be happy, because if so, you have to start from a
amd64 stage and not from x86 one.

John covici schrieb:
> on Friday 01/25/2008 Andrey Falko([EMAIL PROTECTED]) wrote
>  > On Jan 25, 2008 10:00 AM, John covici <[EMAIL PROTECTED]> wrote:
>  > 
>  > > Hi folks.  I right now have my CCFLAGS set to CFLAGS="-O2
>  > > -mtune=athlon-xp -pipe" -- now I am getting one of those new Intel
>  > > e8400 CPU's and so I have two questions.
>  > >
>  > > What should I change my CCFLAGS to -- and do I have to recompile the
>  > > whole system after this is done or what?
>  > 
>  > 
>  > I've done this before. I moved from an old Intel 3.06 Ghz to a new Athlon64
>  > 4600+. I did *not* change flags before the move from system to system. 
> After
>  > the move, however,  I  changed my -march flag (in your case -mtune, which 
> is
>  > equivalent) and recompiled everything to have the change take effect.
>  > 
>  > In your case, move the system from machine to machine, then change your
>  > -mtune to: -mtune=nocona (see
>  > 
> http://gcc.gnu.org/onlinedocs/gcc-4.2.2/gcc/i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options)
>  > . When you are done with that recompile everything: emerge -e world
>  > 
> Thanks all -- I have a 32-bit profile, so I guess I will not be able
> to use ncona -- is this correct?
>
>
>   
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] switching CPU's -- what strange things do I need?

2008-01-25 Thread John covici
on Friday 01/25/2008 Andrey Falko([EMAIL PROTECTED]) wrote
 > On Jan 25, 2008 10:00 AM, John covici <[EMAIL PROTECTED]> wrote:
 > 
 > > Hi folks.  I right now have my CCFLAGS set to CFLAGS="-O2
 > > -mtune=athlon-xp -pipe" -- now I am getting one of those new Intel
 > > e8400 CPU's and so I have two questions.
 > >
 > > What should I change my CCFLAGS to -- and do I have to recompile the
 > > whole system after this is done or what?
 > 
 > 
 > I've done this before. I moved from an old Intel 3.06 Ghz to a new Athlon64
 > 4600+. I did *not* change flags before the move from system to system. After
 > the move, however,  I  changed my -march flag (in your case -mtune, which is
 > equivalent) and recompiled everything to have the change take effect.
 > 
 > In your case, move the system from machine to machine, then change your
 > -mtune to: -mtune=nocona (see
 > http://gcc.gnu.org/onlinedocs/gcc-4.2.2/gcc/i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options)
 > . When you are done with that recompile everything: emerge -e world
 > 
Thanks all -- I have a 32-bit profile, so I guess I will not be able
to use ncona -- is this correct?


-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 [EMAIL PROTECTED]
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] switching CPU's -- what strange things do I need?

2008-01-25 Thread Andrey Falko
On Jan 25, 2008 10:00 AM, John covici <[EMAIL PROTECTED]> wrote:

> Hi folks.  I right now have my CCFLAGS set to CFLAGS="-O2
> -mtune=athlon-xp -pipe" -- now I am getting one of those new Intel
> e8400 CPU's and so I have two questions.
>
> What should I change my CCFLAGS to -- and do I have to recompile the
> whole system after this is done or what?


I've done this before. I moved from an old Intel 3.06 Ghz to a new Athlon64
4600+. I did *not* change flags before the move from system to system. After
the move, however,  I  changed my -march flag (in your case -mtune, which is
equivalent) and recompiled everything to have the change take effect.

In your case, move the system from machine to machine, then change your
-mtune to: -mtune=nocona (see
http://gcc.gnu.org/onlinedocs/gcc-4.2.2/gcc/i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options)
. When you are done with that recompile everything: emerge -e world


>
> Thanks in advance for any assistance.
>
> --
> Your life is like a penny.  You're going to lose it.  The question is:
> How do
> you spend it?
>
> John Covici
> [EMAIL PROTECTED]
> --
> gentoo-user@lists.gentoo.org mailing list
>
>


Re: [gentoo-user] switching CPU's -- what strange things do I need?

2008-01-25 Thread Ricardo Saffi Marques
Well, I'd change my CFLAGS, for sure, so that I'd get all the benefits of
having that better processor. What's your profile: x86 or x86_64 (amd64)?

For your processor, according to http://gentoo-wiki.com/Safe_Cflags (that I
always like to check):

> Intel Core 2 Duo/Quad / Xeon 51xx/53xx
>
> vendor_id  : GenuineIntel
> cpu family  : 6
> model  : 15
> model name  : Intel(R) Core(TM)2 CPU  @ XXXGHz
>
> *32 bit profile (x86)*
>
> CHOST="i686-pc-linux-gnu"
> CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
> CXXFLAGS="${CFLAGS}"
>
> *64 bit profile (amd64)*
>
> CHOST="x86_64-pc-linux-gnu"
> CFLAGS="-march=nocona -O2 -pipe"
> CXXFLAGS="${CFLAGS}"
>
> *Note:*
>
>- GCC 4.3 has 
> -march=core2[1],
>but Gentoo has nothing above 4.2 in portage.
>
> So, I'd change my make.conf to one of those (again, depending of your
profile). And after that, even though some things may need a revdep-rebuild
and it may take a while, why not emerge -e world?

Regards,

Saffi


On 1/25/08, John covici <[EMAIL PROTECTED]> wrote:
>
> Hi folks.  I right now have my CCFLAGS set to CFLAGS="-O2
> -mtune=athlon-xp -pipe" -- now I am getting one of those new Intel
> e8400 CPU's and so I have two questions.
>
> What should I change my CCFLAGS to -- and do I have to recompile the
> whole system after this is done or what?
>
> Thanks in advance for any assistance.
>
> --
> Your life is like a penny.  You're going to lose it.  The question is:
> How do
> you spend it?
>
>  John Covici
>  [EMAIL PROTECTED]
> --
> gentoo-user@lists.gentoo.org mailing list
>
>


-- 
Ricardo Saffi Marques
Laboratório de Administração e Segurança de Sistemas (LAS/IC)
Universidade Estadual de Campinas (UNICAMP)
Cell: +55 (19) 8128-0435
Skype: ricardo_saffi_marques
Website: http://www.rsaffi.com


[gentoo-user] switching CPU's -- what strange things do I need?

2008-01-25 Thread John covici
Hi folks.  I right now have my CCFLAGS set to CFLAGS="-O2
-mtune=athlon-xp -pipe" -- now I am getting one of those new Intel
e8400 CPU's and so I have two questions.

What should I change my CCFLAGS to -- and do I have to recompile the
whole system after this is done or what?

Thanks in advance for any assistance.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 [EMAIL PROTECTED]
-- 
gentoo-user@lists.gentoo.org mailing list