View previous topic :: View next topic |
Author |
Message |
Crooksey Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/19082005084904c8729a718.jpg)
Joined: 26 Apr 2006 Posts: 239 Location: Vatican City
|
Posted: Fri Oct 24, 2008 10:11 pm Post subject: core2duo make.conf |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
zyko l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1291073054843240492763.jpg)
Joined: 01 Jun 2008 Posts: 620 Location: Munich, Germany
|
Posted: Fri Oct 24, 2008 11:29 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
d2_racing Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/1190120345458c61e31ec3c.jpg)
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Fri Oct 24, 2008 11:58 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
desultory Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/15563850365c4d454383627.gif)
Joined: 04 Nov 2005 Posts: 9410
|
Posted: Sat Oct 25, 2008 12:46 am Post subject: |
|
|
You could use the snapshot cached by Google. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Crooksey Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/19082005084904c8729a718.jpg)
Joined: 26 Apr 2006 Posts: 239 Location: Vatican City
|
Posted: Sun Oct 26, 2008 11:19 am Post subject: |
|
|
Thanks, much appreciated. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Paapaa l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/7560954014609741ea1af8.png)
Joined: 14 Aug 2005 Posts: 955 Location: Finland
|
Posted: Sun Oct 26, 2008 12:43 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
d2_racing Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/1190120345458c61e31ec3c.jpg)
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pilla Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/9555681074926d9b92f09a.jpg)
Joined: 07 Aug 2002 Posts: 7731 Location: Underworld
|
Posted: Thu Oct 30, 2008 12:17 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
d2_racing Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/1190120345458c61e31ec3c.jpg)
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Thu Oct 30, 2008 2:20 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Schwinni Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 02 Sep 2004 Posts: 214 Location: quadrant1.earth. germany.wuerzburg
|
Posted: Fri Oct 31, 2008 1:55 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|