Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Core i5 Settings
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
JC99
l33t
l33t


Joined: 06 Aug 2003
Posts: 782
Location: Toronto

PostPosted: Mon Nov 23, 2009 11:58 pm    Post subject: Core i5 Settings Reply with quote

I have 3 questions relating to the core i5 CPU...

1) Do I use amd64 or ia64 for the core i5 CPU?

2) What do I use for my CHOST?

3) What do I use for my CFLAGS?


Last edited by JC99 on Wed Dec 16, 2009 3:44 am; edited 4 times in total
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Tue Nov 24, 2009 12:03 am    Post subject: Reply with quote

From what I gather, it's the same as i7

:arrow: Look here for details.

Of course, if your gcc is >=4.2.3 this would probably be best for 64 bit
Code:
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
Back to top
View user's profile Send private message
JC99
l33t
l33t


Joined: 06 Aug 2003
Posts: 782
Location: Toronto

PostPosted: Tue Nov 24, 2009 12:11 am    Post subject: Reply with quote

Thanks for the link. I see you have "native" but the document you linked too has "core2". What's the difference between these?

I'm assuming I use the amd64 install CD, is this correct?
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Tue Nov 24, 2009 12:22 am    Post subject: Reply with quote

Good question,

:arrow: answer
Back to top
View user's profile Send private message
d2_racing
Moderator
Moderator


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

PostPosted: Tue Nov 24, 2009 12:43 am    Post subject: Reply with quote

Use the AMD64 install CD.
_________________
Sysadmin of GentooQuébec.org
Wiki
Signature
IRC on Freenode : #gentoo-quebec
Back to top
View user's profile Send private message
JC99
l33t
l33t


Joined: 06 Aug 2003
Posts: 782
Location: Toronto

PostPosted: Tue Nov 24, 2009 12:44 am    Post subject: Reply with quote

ok, that leads me to another question. The wiki says...

Quote:
-march=native, which automatically detects the features your CPU supports and sets the options appropriately


...Does this mean I don't have to include stuff like "-msse4"?
Back to top
View user's profile Send private message
poly_poly-man
Advocate
Advocate


Joined: 06 Dec 2006
Posts: 2477
Location: RIT, NY, US

PostPosted: Tue Nov 24, 2009 1:50 am    Post subject: Reply with quote

EvilEye wrote:
ok, that leads me to another question. The wiki says...

Quote:
-march=native, which automatically detects the features your CPU supports and sets the options appropriately


...Does this mean I don't have to include stuff like "-msse4"?
spot on.
_________________
iVBORw0KGgoAAAANSUhEUgAAA

avatar: new version of logo - see topic 838248. Potentially still a WiP.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Tue Nov 24, 2009 1:56 am    Post subject: Reply with quote

You should be able to see what -march=native will autodect with this command when your gcc is installed
Code:
gcc -### -march=native -E /usr/include/stdlib.h 2>&1 | grep "/usr/libexec/gcc/.*cc1"
Back to top
View user's profile Send private message
JC99
l33t
l33t


Joined: 06 Aug 2003
Posts: 782
Location: Toronto

PostPosted: Tue Nov 24, 2009 2:00 am    Post subject: Reply with quote

ok, just one more question :D

What about stuff like "-fomit-frame-pointer" or "-pipe", would I have to manually include those or are they also included in "native"?
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Tue Nov 24, 2009 2:09 am    Post subject: Reply with quote

CFLAGS="-march=native -O2 -pipe"

-fomit-frame-pointer is included in -O2 on amd64

Happy compiling :)
Back to top
View user's profile Send private message
luispa
Guru
Guru


Joined: 17 Mar 2006
Posts: 343
Location: España

PostPosted: Tue Nov 24, 2009 7:12 am    Post subject: Reply with quote

Also remember
Code:
 MAKEOPTS="-j9"  (for Core i7)

 or...

 MAKEOPTS="-j5"  (for Core i5)
Back to top
View user's profile Send private message
d2_racing
Moderator
Moderator


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

PostPosted: Tue Nov 24, 2009 5:13 pm    Post subject: Reply with quote

In fact, that will boost your compilation time :P
_________________
Sysadmin of GentooQuébec.org
Wiki
Signature
IRC on Freenode : #gentoo-quebec
Back to top
View user's profile Send private message
Simba7
l33t
l33t


Joined: 22 Jan 2007
Posts: 685
Location: Billings, MT, USA

PostPosted: Tue Nov 24, 2009 6:52 pm    Post subject: Reply with quote

So, basically the i5 is a chopped version of the i7..

1. Core i7 supports HyperThreading, Core i5 does not.
2. Core i7 supports Triple-Channel DDR3, Core i5 only supports Dual-Channel.
3. Core i5 has a built-in PCI-Express controller.. The Core i7 does not.
_________________
Router(Nokia IP390,2GB RAM,8GB SSD,4xGE/4xFE ports,OpenBSD) | MyDT(Xeon X3470@3.45GHz,16GB RAM,2TB+2TB+3x1.5TB HDDs,GFGTX560Ti,LG BD-RE,Win10TP)
MyLT(Asus G53SX,32GB RAM,2x2TB HDDs,BD-RE,Intel 6230,Win7) | Wife(PnmIIX6@2.9GHz,8GB RAM,1TB HDD,DVDRW,Win7)
Back to top
View user's profile Send private message
d2_racing
Moderator
Moderator


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

PostPosted: Tue Nov 24, 2009 8:34 pm    Post subject: Reply with quote

It's like a Celeron if you compare to an old P4 arch.
_________________
Sysadmin of GentooQuébec.org
Wiki
Signature
IRC on Freenode : #gentoo-quebec
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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