Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Optimum CFLAGS for an Intel N450 processor?
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
-lego-
n00b
n00b


Joined: 20 May 2010
Posts: 11

PostPosted: Thu May 20, 2010 11:39 am    Post subject: Optimum CFLAGS for an Intel N450 processor? Reply with quote

Hi,

I am new to gentoo. I have already installed gentoo on my laptop with success. I would like to learn a lot using gentoo, but there are plenty of things in which I am unclear. Here is my first question:

Recently I've purchased a netbook Asus Eee pc 1005 PE, which has an Intel N450 (Pine trail) 64-bit processor.
I've searched in forums, in google, in the whole internet but I still do not know which are the optimum cflags for this processor, specially the -march option. I have also looked at the processor datasheet but I do not know which are the optimum cflags.

It is -march=nocona, or -march=core2, or -march=?? ? And what about the other options (-msse3, etc..)?

If someone can post the make.conf file for that netbook, that would be great!
Any information or help would be much appreciated.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Thu May 20, 2010 12:56 pm    Post subject: Reply with quote

Welcome to Gentoo!

This would be a good starting point: http://en.gentoo-wiki.com/wiki/Safe_Cflags/Intel#Atom
Back to top
View user's profile Send private message
Jimini
l33t
l33t


Joined: 31 Oct 2006
Posts: 601
Location: Germany

PostPosted: Thu May 20, 2010 12:59 pm    Post subject: Reply with quote

"i686" should be the correct arch. Just get the i686-stage3-tarball and everything should be fine.

Best regards,
Jimini
_________________
"The most merciful thing in the world, I think, is the inability of the human mind to correlate all its contents." (H.P. Lovecraft: The Call of Cthulhu)
Back to top
View user's profile Send private message
-lego-
n00b
n00b


Joined: 20 May 2010
Posts: 11

PostPosted: Thu May 20, 2010 1:13 pm    Post subject: Reply with quote

Quote:
"i686" should be the correct arch.


But since the N450 is 64-bit processor, wouldn't be better to take the "x86_64"?
Why do you say the "i686" is the correct arch for this processor, where did you get this info?

Thanks for the answers
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Thu May 20, 2010 1:40 pm    Post subject: Reply with quote

i686 or x86_64, choice is yours.

You can use -march=native

This will tell you what native will enable
Code:
gcc -Q --help=target -march=native
Back to top
View user's profile Send private message
-lego-
n00b
n00b


Joined: 20 May 2010
Posts: 11

PostPosted: Thu May 20, 2010 2:45 pm    Post subject: Reply with quote

Jaglover wrote:
i686 or x86_64, choice is yours.

You can use -march=native

This will tell you what native will enable
Code:
gcc -Q --help=target -march=native


Thank you very much, I will use x86_64 and -march=native.

Anyway, if in a future I change any option in the make.conf file, by emerging twice the whole system I should get a system compiled with the new options, isn't it?
Back to top
View user's profile Send private message
Jimini
l33t
l33t


Joined: 31 Oct 2006
Posts: 601
Location: Germany

PostPosted: Thu May 20, 2010 3:01 pm    Post subject: Reply with quote

If you want to change your CHOST, take a look at this.
If you just want to edit your USE-flags, just use "emerge" with the "newuse"-parameter: emerge --newuse world or emerge -N world.

I'm not really sure what to do, if you have changed other options like "-march", but I guess, "emerge -e" should be the right way. But as I already said, I'm not sure.

Best regards,
Jimini
_________________
"The most merciful thing in the world, I think, is the inability of the human mind to correlate all its contents." (H.P. Lovecraft: The Call of Cthulhu)
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Thu May 20, 2010 3:03 pm    Post subject: Reply with quote

Quote:
Anyway, if in a future I change any option in the make.conf file, by emerging twice the whole system I should get a system compiled with the new options, isn't it?

This is not that drastic, many [most] packages won't be affected, native does good enough job.

http://www.gentoo.org/doc/en/gcc-optimization.xml
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
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