* [gentoo-user] CFLAGS
@ 2008-01-16 19:48 Cahn Roger
2008-01-16 19:54 ` Kenneth Prugh
0 siblings, 1 reply; 19+ messages in thread
From: Cahn Roger @ 2008-01-16 19:48 UTC (permalink / raw
To: gentoo-user
Hi,
I'll have soon a new PC with Processor
Intel Core2 Duo E6850
Which cflags do I need for it?
Thank you very much.
Roger
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] CFLAGS
2008-01-16 19:48 Cahn Roger
@ 2008-01-16 19:54 ` Kenneth Prugh
2008-01-16 20:04 ` Michal 'vorner' Vaner
` (2 more replies)
0 siblings, 3 replies; 19+ messages in thread
From: Kenneth Prugh @ 2008-01-16 19:54 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 478 bytes --]
On Wed, 16 Jan 2008 20:48:21 +0100
Cahn Roger <rcahn@club-internet.fr> wrote:
> Hi,
>
> I'll have soon a new PC with Processor
> Intel Core2 Duo E6850
> Which cflags do I need for it?
> Thank you very much.
> Roger
CFLAGS="-O2 -march=nocona -pipe"
should do it if your running stable AMD64. If you happened to use
gcc-4.2 or later on AMD64 you could do something like this:
CFLAGS="-O2 -march=native -mtune=native -pipe"
--
Ken69267
Gentoo AMD64 AT
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] CFLAGS
2008-01-16 19:54 ` Kenneth Prugh
@ 2008-01-16 20:04 ` Michal 'vorner' Vaner
2008-01-16 20:10 ` Kenneth Prugh
2008-01-16 20:34 ` Benedikt Morbach
2008-01-17 10:27 ` Peter Humphrey
2 siblings, 1 reply; 19+ messages in thread
From: Michal 'vorner' Vaner @ 2008-01-16 20:04 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 372 bytes --]
Hello
On Wed, Jan 16, 2008 at 02:54:42PM -0500, Kenneth Prugh wrote:
> CFLAGS="-O2 -march=native -mtune=native -pipe"
Could this happen a default in clean installation/manual sometime? Most
people could leave this lake it is and never think about what flags to
use.
--
Please stay calm. There is no use both of us being hysterical.
Michal 'vorner' Vaner
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] CFLAGS
2008-01-16 20:04 ` Michal 'vorner' Vaner
@ 2008-01-16 20:10 ` Kenneth Prugh
0 siblings, 0 replies; 19+ messages in thread
From: Kenneth Prugh @ 2008-01-16 20:10 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 676 bytes --]
On Wed, 16 Jan 2008 21:04:11 +0100
Michal 'vorner' Vaner <vorner@ucw.cz> wrote:
> Hello
>
> On Wed, Jan 16, 2008 at 02:54:42PM -0500, Kenneth Prugh wrote:
> > CFLAGS="-O2 -march=native -mtune=native -pipe"
>
> Could this happen a default in clean installation/manual sometime?
> Most people could leave this lake it is and never think about what
> flags to use.
>
I suppose if gcc 4.2 ever goes stable it could... Or if you
tell people to keyword gcc right away to 4.2 and emerge it, change the
cflags to native, then emerge -e world it would. (Not very ideal and
it's time consuming...)
(I could be wrong though...)
--
Ken69267
Gentoo AMD64 AT
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] CFLAGS
2008-01-16 19:54 ` Kenneth Prugh
2008-01-16 20:04 ` Michal 'vorner' Vaner
@ 2008-01-16 20:34 ` Benedikt Morbach
2008-01-17 10:27 ` Peter Humphrey
2 siblings, 0 replies; 19+ messages in thread
From: Benedikt Morbach @ 2008-01-16 20:34 UTC (permalink / raw
To: gentoo-user
On 1/16/08, Kenneth Prugh <ken69267@gmail.com> wrote:
> CFLAGS="-O2 -march=native -mtune=native -pipe"
CFLAGS="-O2 -march=native -pipe"
would be sufficient.
On my system, it gives me (I have a core 2 duo)
CFLAGS="-O2 -march=nocona -mtune=generic -pipe"
while with gcc-4.3, I get
CFLAGS="-O2 -march=core2 -mtune=core2 -pipe"
So -march=native handles both, -march and -mtune
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] CFLAGS
2008-01-16 19:54 ` Kenneth Prugh
2008-01-16 20:04 ` Michal 'vorner' Vaner
2008-01-16 20:34 ` Benedikt Morbach
@ 2008-01-17 10:27 ` Peter Humphrey
2008-01-17 11:42 ` Tomas Papan
2008-01-17 13:22 ` Etaoin Shrdlu
2 siblings, 2 replies; 19+ messages in thread
From: Peter Humphrey @ 2008-01-17 10:27 UTC (permalink / raw
To: gentoo-user
On Wednesday 16 January 2008 19:54:42 Kenneth Prugh wrote:
> On Wed, 16 Jan 2008 20:48:21 +0100
>
> Cahn Roger <rcahn@club-internet.fr> wrote:
> > Hi,
> >
> > I'll have soon a new PC with Processor
> > Intel Core2 Duo E6850
> > Which cflags do I need for it?
> > Thank you very much.
> > Roger
>
> CFLAGS="-O2 -march=nocona -pipe"
>
> should do it if your running stable AMD64. If you happened to use
> gcc-4.2 or later on AMD64 you could do something like this:
>
> CFLAGS="-O2 -march=native -mtune=native -pipe"
Just a tiny hijack :-)
My new laptop will have a T7100 CPU. I'd like to know what CFLAGS to use,
but even before that should I use an AMD64 or IA64 installation medium?
--
Rgds
Peter
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] CFLAGS
2008-01-17 10:27 ` Peter Humphrey
@ 2008-01-17 11:42 ` Tomas Papan
2008-01-17 12:38 ` Peter Humphrey
2008-01-17 13:22 ` Etaoin Shrdlu
1 sibling, 1 reply; 19+ messages in thread
From: Tomas Papan @ 2008-01-17 11:42 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 854 bytes --]
hello,
in case that you want use 64bit system chose amd64 and -march=nocona
BR
tomas
Peter Humphrey wrote:
> On Wednesday 16 January 2008 19:54:42 Kenneth Prugh wrote:
>
>> On Wed, 16 Jan 2008 20:48:21 +0100
>>
>> Cahn Roger <rcahn@club-internet.fr> wrote:
>>
>>> Hi,
>>>
>>> I'll have soon a new PC with Processor
>>> Intel Core2 Duo E6850
>>> Which cflags do I need for it?
>>> Thank you very much.
>>> Roger
>>>
>> CFLAGS="-O2 -march=nocona -pipe"
>>
>> should do it if your running stable AMD64. If you happened to use
>> gcc-4.2 or later on AMD64 you could do something like this:
>>
>> CFLAGS="-O2 -march=native -mtune=native -pipe"
>>
>
> Just a tiny hijack :-)
>
> My new laptop will have a T7100 CPU. I'd like to know what CFLAGS to use,
> but even before that should I use an AMD64 or IA64 installation medium?
>
>
[-- Attachment #2: Type: text/html, Size: 1424 bytes --]
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] CFLAGS
2008-01-17 11:42 ` Tomas Papan
@ 2008-01-17 12:38 ` Peter Humphrey
2008-01-17 15:36 ` Kenneth Prugh
2008-01-17 16:10 ` Alan McKinnon
0 siblings, 2 replies; 19+ messages in thread
From: Peter Humphrey @ 2008-01-17 12:38 UTC (permalink / raw
To: gentoo-user
On Thursday 17 January 2008 11:42:37 Tomas Papan wrote:
> in case that you want use 64bit system chose amd64 and -march=nocona
OK, thanks. What then is IA64 for?
--
Rgds
Peter
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] CFLAGS
2008-01-17 10:27 ` Peter Humphrey
2008-01-17 11:42 ` Tomas Papan
@ 2008-01-17 13:22 ` Etaoin Shrdlu
1 sibling, 0 replies; 19+ messages in thread
From: Etaoin Shrdlu @ 2008-01-17 13:22 UTC (permalink / raw
To: gentoo-user
On Thursday 17 January 2008, Peter Humphrey wrote:
> Just a tiny hijack :-)
>
> My new laptop will have a T7100 CPU. I'd like to know what CFLAGS to
> use, but even before that should I use an AMD64 or IA64 installation
> medium?
Maybe this wiki page could help:
http://gentoo-wiki.com/Safe_Cflags
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] CFLAGS
2008-01-17 12:38 ` Peter Humphrey
@ 2008-01-17 15:36 ` Kenneth Prugh
2008-01-17 15:40 ` Ricardo Saffi Marques
2008-01-17 16:01 ` Peter Humphrey
2008-01-17 16:10 ` Alan McKinnon
1 sibling, 2 replies; 19+ messages in thread
From: Kenneth Prugh @ 2008-01-17 15:36 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 324 bytes --]
On Thu, 17 Jan 2008 12:38:47 +0000
Peter Humphrey <peter@humphrey.ukfsn.org> wrote:
> On Thursday 17 January 2008 11:42:37 Tomas Papan wrote:
>
> > in case that you want use 64bit system chose amd64 and -march=nocona
>
> OK, thanks. What then is IA64 for?
>
Intel Itanium processors. (Your T7100 is a Core2)
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] CFLAGS
2008-01-17 15:36 ` Kenneth Prugh
@ 2008-01-17 15:40 ` Ricardo Saffi Marques
2008-01-17 16:01 ` Peter Humphrey
1 sibling, 0 replies; 19+ messages in thread
From: Ricardo Saffi Marques @ 2008-01-17 15:40 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 607 bytes --]
http://gentoo-wiki.com/Safe_Cflags
> Intel Core 2 Duo/Quad / Xeon 51xx/53xx
>
> vendor_id : GenuineIntel
> cpu family : 6
> model : 15
> model name : Intel(R) Core(TM)2 CPU XXXX @ 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]<http://www.gnu.org/software/gcc/gcc-4.3/changes.html>,
> but Gentoo has nothing above 4.2 in portage.
>
>
[-- Attachment #2: Type: text/html, Size: 1131 bytes --]
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] CFLAGS
2008-01-17 15:36 ` Kenneth Prugh
2008-01-17 15:40 ` Ricardo Saffi Marques
@ 2008-01-17 16:01 ` Peter Humphrey
1 sibling, 0 replies; 19+ messages in thread
From: Peter Humphrey @ 2008-01-17 16:01 UTC (permalink / raw
To: gentoo-user
On Thursday 17 January 2008 15:36:51 Kenneth Prugh wrote:
> On Thu, 17 Jan 2008 12:38:47 +0000
> Peter Humphrey <peter@humphrey.ukfsn.org> wrote:
> > OK, thanks. What then is IA64 for?
>
> Intel Itanium processors. (Your T7100 is a Core2)
Of course. Thanks again; also to Etaoin.
--
Rgds
Peter
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] CFLAGS
2008-01-17 12:38 ` Peter Humphrey
2008-01-17 15:36 ` Kenneth Prugh
@ 2008-01-17 16:10 ` Alan McKinnon
2008-01-17 19:46 ` Bo Ørsted Andresen
1 sibling, 1 reply; 19+ messages in thread
From: Alan McKinnon @ 2008-01-17 16:10 UTC (permalink / raw
To: gentoo-user
On Thursday 17 January 2008, Peter Humphrey wrote:
> On Thursday 17 January 2008 11:42:37 Tomas Papan wrote:
> > in case that you want use 64bit system chose amd64 and
> > -march=nocona
>
> OK, thanks. What then is IA64 for?
Itanium2.
You don't want to go there. Trust me.
It's a bastard evolution of one of Intel's worst ideas ever - Itanium,
which was their first 64 bit effort. Only HP ever used it and it was a
disaster in the market. Windows and Linux have never run on it. AMD did
it right with amd64 which Intel copied as emt64. Meanwhile Itanium2
came along, called IA64 in Linux terms. The only place you will ever
see this architecture is in a data centre, and the machine will be at
least 8 years old.
alan
--
Alan McKinnon
alan dot mckinnon at gmail dot com
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] CFLAGS
2008-01-17 16:10 ` Alan McKinnon
@ 2008-01-17 19:46 ` Bo Ørsted Andresen
0 siblings, 0 replies; 19+ messages in thread
From: Bo Ørsted Andresen @ 2008-01-17 19:46 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 246 bytes --]
On Thursday 17 January 2008 17:10:11 Alan McKinnon wrote:
> Itanium2.
>
> You don't want to go there. Trust me.
>
> It's a bastard evolution of one of Intel's worst ideas ever
I thought that would be Pentium 4 EE. :P
--
Bo Andresen
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 19+ messages in thread
* [gentoo-user] CFLAGS
@ 2010-11-02 8:43 Coert Waagmeester
2010-11-02 9:21 ` Sebastian Beßler
` (2 more replies)
0 siblings, 3 replies; 19+ messages in thread
From: Coert Waagmeester @ 2010-11-02 8:43 UTC (permalink / raw
To: gentoo-user
Hello all,
Possible noob question.
I have installed a 64 bit gentoo on my intel Pentium D machine.
Now I am reading through /usr/share/portage/config/make.conf.example
My CFLAGS on that machine is the default currently: CFLAGS="-O2 -pipe"
But according to
http://www.gentoo.org/doc/en/gentoo-amd64-faq.xml#cflags I can make it:
-O2 -march=core2 -pipe
Is this entirely necessary? Will it cause a big improvement?
If I do change, how do I recompile everything? (like --newuse for USE
changes?)
Thank you,
Coert Waagmeester
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] CFLAGS
2010-11-02 8:43 [gentoo-user] CFLAGS Coert Waagmeester
@ 2010-11-02 9:21 ` Sebastian Beßler
2010-11-02 9:22 ` Alan McKinnon
2010-11-02 10:40 ` Yohan Pereira
2 siblings, 0 replies; 19+ messages in thread
From: Sebastian Beßler @ 2010-11-02 9:21 UTC (permalink / raw
To: gentoo-user
Am 02.11.2010 09:43, schrieb Coert Waagmeester:
> Hello all,
Hello!
> Possible noob question.
We all was noobs once, maybe I am still ;-)
> If I do change, how do I recompile everything? (like --newuse for USE
> changes?)
To recompile all use emerge -e world
The switch -e lets portage think that nothing is installed so it has to
reinstall everything and his dependencies.
read man emerge for more informations.
Greetings
Sebastian
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] CFLAGS
2010-11-02 8:43 [gentoo-user] CFLAGS Coert Waagmeester
2010-11-02 9:21 ` Sebastian Beßler
@ 2010-11-02 9:22 ` Alan McKinnon
2010-11-02 10:40 ` Yohan Pereira
2 siblings, 0 replies; 19+ messages in thread
From: Alan McKinnon @ 2010-11-02 9:22 UTC (permalink / raw
To: gentoo-user; +Cc: Coert Waagmeester
Apparently, though unproven, at 10:43 on Tuesday 02 November 2010, Coert
Waagmeester did opine thusly:
> Hello all,
>
> Possible noob question.
>
> I have installed a 64 bit gentoo on my intel Pentium D machine.
> Now I am reading through /usr/share/portage/config/make.conf.example
>
> My CFLAGS on that machine is the default currently: CFLAGS="-O2 -pipe"
> But according to
> http://www.gentoo.org/doc/en/gentoo-amd64-faq.xml#cflags I can make it:
> -O2 -march=core2 -pipe
With a recent gcc (4.something) you should use
-O2 -march=native -pipe
Saves you having to figure out what the arch is.
> Is this entirely necessary? Will it cause a big improvement?
It will improve things by making all code optimized for your CPU if most of
your binaries are still from the stage tarball and unoptimized for you.
You will be able to measure the difference with very fancy software.
You will not notice the difference. If you think you do, you are imagining it.
> If I do change, how do I recompile everything? (like --newuse for USE
> changes?)
emerge -e world
--
alan dot mckinnon at gmail dot com
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] CFLAGS
2010-11-02 8:43 [gentoo-user] CFLAGS Coert Waagmeester
2010-11-02 9:21 ` Sebastian Beßler
2010-11-02 9:22 ` Alan McKinnon
@ 2010-11-02 10:40 ` Yohan Pereira
2010-11-02 14:20 ` Chris Reffett
2 siblings, 1 reply; 19+ messages in thread
From: Yohan Pereira @ 2010-11-02 10:40 UTC (permalink / raw
To: gentoo-user
On Tuesday 02 November 2010 2:13:41 pm Coert Waagmeester wrote:
> I have installed a 64 bit gentoo on my intel Pentium D machine.
also as far as i know, core2 is for core 2 duo quad etc cpus ...
not for pentium D.
> -O2 -march=core2 -pipe
use native as Alan suggested.
or refer to
http://www.gentoo-wiki.info/Safe_Cflags
--
- Yohan Pereira.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] CFLAGS
2010-11-02 10:40 ` Yohan Pereira
@ 2010-11-02 14:20 ` Chris Reffett
0 siblings, 0 replies; 19+ messages in thread
From: Chris Reffett @ 2010-11-02 14:20 UTC (permalink / raw
To: gentoo-user
I feel like the Pentium D is "march=prescott" though, again, native
should work fine as well.
Chris Reffett
On 11/02/2010 06:40 AM, Yohan Pereira wrote:
> On Tuesday 02 November 2010 2:13:41 pm Coert Waagmeester wrote:
>> I have installed a 64 bit gentoo on my intel Pentium D machine.
> also as far as i know, core2 is for core 2 duo quad etc cpus ...
> not for pentium D.
>
>> -O2 -march=core2 -pipe
> use native as Alan suggested.
> or refer to
>
> http://www.gentoo-wiki.info/Safe_Cflags
>
^ permalink raw reply [flat|nested] 19+ messages in thread
end of thread, other threads:[~2010-11-02 15:07 UTC | newest]
Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-02 8:43 [gentoo-user] CFLAGS Coert Waagmeester
2010-11-02 9:21 ` Sebastian Beßler
2010-11-02 9:22 ` Alan McKinnon
2010-11-02 10:40 ` Yohan Pereira
2010-11-02 14:20 ` Chris Reffett
-- strict thread matches above, loose matches on Subject: below --
2008-01-16 19:48 Cahn Roger
2008-01-16 19:54 ` Kenneth Prugh
2008-01-16 20:04 ` Michal 'vorner' Vaner
2008-01-16 20:10 ` Kenneth Prugh
2008-01-16 20:34 ` Benedikt Morbach
2008-01-17 10:27 ` Peter Humphrey
2008-01-17 11:42 ` Tomas Papan
2008-01-17 12:38 ` Peter Humphrey
2008-01-17 15:36 ` Kenneth Prugh
2008-01-17 15:40 ` Ricardo Saffi Marques
2008-01-17 16:01 ` Peter Humphrey
2008-01-17 16:10 ` Alan McKinnon
2008-01-17 19:46 ` Bo Ørsted Andresen
2008-01-17 13:22 ` Etaoin Shrdlu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox