Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
core2duo make.conf
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Crooksey
Apprentice
Apprentice


Joined: 26 Apr 2006
Posts: 239
Location: Vatican City

PostPosted: Fri Oct 24, 2008 10:11 pm    Post subject: core2duo make.conf Reply with quote

As gentoo wiki is down my refrence for re-installs has gone, could anyone share their make.conf for their core2duo system, mainly just the CFLAGS, thanks.
Back to top
View user's profile Send private message
zyko
l33t
l33t


Joined: 01 Jun 2008
Posts: 620
Location: Munich, Germany

PostPosted: Fri Oct 24, 2008 11:29 pm    Post subject: Reply with quote

This is mine, for gcc-4.3.1. It's the same for x86 and amd64:
Code:
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"


The currently stable GCC-4.1.2 doesn't support -march=native. The next best thing is -march=prescott (for x86) or -march=nocona (for amd64).
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Fri Oct 24, 2008 11:58 pm    Post subject: Reply with quote

Hi, i use this with my Quad Core :

Code:

CFLAGS="-O2 -march=nocona -pipe"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j5"
Back to top
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Sat Oct 25, 2008 12:46 am    Post subject: Reply with quote

You could use the snapshot cached by Google.
Back to top
View user's profile Send private message
Crooksey
Apprentice
Apprentice


Joined: 26 Apr 2006
Posts: 239
Location: Vatican City

PostPosted: Sun Oct 26, 2008 11:19 am    Post subject: Reply with quote

Thanks, much appreciated.
Back to top
View user's profile Send private message
Paapaa
l33t
l33t


Joined: 14 Aug 2005
Posts: 955
Location: Finland

PostPosted: Sun Oct 26, 2008 12:43 pm    Post subject: Reply with quote

zyko wrote:
This is mine, for gcc-4.3.1. It's the same for x86 and amd64:
Code:
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"



"-fomit-frame-pointer" is always on by default with "-O2" (and with -O1, -O3, -Os) when it doesn't interfere debugging. This includes all x86_64 setups.
_________________
Paludis, the way packages are meant to be managed.
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Thu Oct 30, 2008 11:52 am    Post subject: Reply with quote

Also, there a lot of thing that are include inside -O2 :

http://gcc.gnu.org/onlinedocs/gcc-4.3.0/gcc/Optimize-Options.html
http://gcc.gnu.org/onlinedocs/gcc-4.3.2/gcc/i386-and-x86_002d64-Options.html
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7731
Location: Underworld

PostPosted: Thu Oct 30, 2008 12:17 pm    Post subject: Reply with quote

There's a new option, -march=core2, that I wasn't aware.
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Thu Oct 30, 2008 2:20 pm    Post subject: Reply with quote

In fact, -march=core2 is the best option, because if you use native, the Gcc has to compare his database to see what Gcc option that he will use.

Specifying the right arch, this will safe a split second on every package.

The puriste use the right arch and they not let Gcc figure this out my himself.
Back to top
View user's profile Send private message
Schwinni
Apprentice
Apprentice


Joined: 02 Sep 2004
Posts: 214
Location: quadrant1.earth. germany.wuerzburg

PostPosted: Fri Oct 31, 2008 1:55 pm    Post subject: Reply with quote

Basically you are right, but there are some packages which don't compile with gcc 4.3.x, e.g. pdftk.
For that you need gcc 4.2.x, which doesn't understand -march=core2.
But gcc 4.2 supports march=native.

This way you don't have to change your make.conf every time you switch your gcc for a certain package.
The optimization result should be the same anyway...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum