Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Recomanded CFLAGS/CXXFLAGS LDFLAGS etc for Lynnfield
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
costel78
Guru
Guru


Joined: 20 Apr 2007
Posts: 310

PostPosted: Wed Sep 16, 2009 7:01 pm    Post subject: Recomanded CFLAGS/CXXFLAGS LDFLAGS etc for Lynnfield Reply with quote

This week I will assemble a new system based on Intel Core I7 860 processor.
Probably I'll put native in march options.
What -jn to add in MAKEOPTS ? Any special CFLAGS compared with 775 platform ?

I "stolen" some ideas from kernelOfTruth (thank you) :) here.
Thank you!
_________________
Sorry for my English. I'm still learning this language.
Back to top
View user's profile Send private message
xaviermiller
Administrator
Administrator


Joined: 23 Jul 2004
Posts: 7970
Location: ~Brussels - Belgique

PostPosted: Wed Sep 16, 2009 8:20 pm    Post subject: Reply with quote

Code:
-march=native -mtune=native

_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5735

PostPosted: Wed Sep 16, 2009 10:41 pm    Post subject: Reply with quote

Yep, "-march=native" should be fine - unless you use distcc.
Back to top
View user's profile Send private message
costel78
Guru
Guru


Joined: 20 Apr 2007
Posts: 310

PostPosted: Mon Sep 21, 2009 2:06 pm    Post subject: Reply with quote

Finally I use CFLAGS="-O2 -pipe -fforce-addr -march=native -mtune=native -ftree-vectorize -ftracer -combine -floop-interchange -floop-strip-mine -floop-block" and seems that best MAKEOPTS is MAKEOPTS="-j8 --load-average=8"

Thanks for your suggestions.
_________________
Sorry for my English. I'm still learning this language.
Back to top
View user's profile Send private message
unK
l33t
l33t


Joined: 06 Feb 2007
Posts: 769

PostPosted: Mon Sep 21, 2009 3:00 pm    Post subject: Reply with quote

costel78 wrote:
CFLAGS="-O2 -pipe -fforce-addr -march=native -mtune=native -ftree-vectorize -ftracer -combine -floop-interchange -floop-strip-mine -floop-block"

happy broken system ;)
_________________
ncmpcpp - featureful ncurses based MPD client inspired by ncmpc
Back to top
View user's profile Send private message
loftwyr
l33t
l33t


Joined: 29 Dec 2004
Posts: 970
Location: 43°38'23.62"N 79°27'8.60"W

PostPosted: Mon Sep 21, 2009 3:57 pm    Post subject: Reply with quote

-combine only works if there are multiple source files compiled on the command line (which few programs do) and will actually harm optimization efforts if used when this is not the case.

-ftree-vectorize -ftracer and -fforce-addr -fforce-addr are redundant with your chip and -march=native.

You should read "info gcc" before just arbitrarily adding flags from ricers.
_________________
My emerge --info
Have you run revdep-rebuild lately? It's in gentoolkit and it's worth a shot if things don't work well.
Celebrating 5 years of Gentoo-ing.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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