Jump to content
  • 0

CFLAGS doco


danielv
 Share

Question

Clarification: doco = documentation

 

http://www.funtoo.org/News:The_Many_Builds_of_Funtoo_Linux

takes us to ...

http://www.funtoo.org/Subarches

Let's say you have a core2_64 chip, so from the Subarches page you'd go to http://www.funtoo.org/Core2_64

 

See http://www.funtoo.org/Installation_%28Tutorial%29

 

edit /etc/make.conf

CHOST="x86_64-pc-linux-gnu"

 

CFLAGS="-march=core2 -O2 -pipe" <-- as per http://www.funtoo.org/Core2_64

CFLAGS="-march=native -O2 -pipe"  <-- as per http://www.funtoo.org/Installation_%28Tutorial%29

 

Which is the best CFLAG option to use?

Can we please edit the appropriate web page to be consistent?

 

Thanks! danielv

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

a tutorial (a big messy page) never was a consistent page and wasn't actively checked (if at all) by stuff. -march=native is GCC optimization that used for a target cpu, i.e what gcc finds best. Many believe that gives more optimizied code and it is stable, it is widely used. My personal opinion: if it does any improvements, they are ngligible on recent hardware. other than that, how gcc calculates it? Likely there is internal test suite for a cpu instruction and cache parameters, which tell what to enable. However, it might be not perfect. It is up to user to decide.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...