You are not logged in.

#1 2009-02-20 00:43:27

pogeymanz
Member
Registered: 2008-03-11
Posts: 1,020

So I just compiled a BUNCH of stuff and...

I just realized that my CFLAG line is nocona, when the wiki says that for gcc >= 4.3.0 should be core2. Did I just waste a bunch of time?

Offline

#2 2009-02-20 06:25:09

evilgold
Member
Registered: 2008-10-30
Posts: 120

Re: So I just compiled a BUNCH of stuff and...

well core2 might have a few more optimizations then nocona, but it shouldnt make things any worse then the defaults. I always just use march=native on all my systems.

Offline

#3 2009-02-20 11:06:20

quarkup
Member
From: Portugal
Registered: 2008-09-07
Posts: 497
Website

Re: So I just compiled a BUNCH of stuff and...

pogeymanz wrote:

I just realized that my CFLAG line is nocona, when the wiki says that for gcc >= 4.3.0 should be core2. Did I just waste a bunch of time?

Depends on your system's cpu - I use the following flags when I use gcc for compiling my apps:

-O2 -mtune=`uname -m` -march=`uname -m`



man gcc

man gcc wrote:

nocona
               Improved version of Intel Pentium4 CPU with 64-bit extensions,
               MMX, SSE, SSE2 and SSE3 instruction set support.

           core2
               Intel Core2 CPU with 64-bit extensions, MMX, SSE, SSE2, SSE3 and
               SSSE3 instruction set support.


If people do not believe that mathematics is simple, it is only because they do not realize how complicated life is.
Simplicity is the ultimate sophistication.

Offline

#4 2009-02-20 12:55:39

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: So I just compiled a BUNCH of stuff and...

This is what I use on my all my x86_64 boxes:

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

Anyway, I doubt that you will notice mutch of an performance difference between 'nocona' and 'core2'.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#5 2009-02-20 15:10:04

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,577

Re: So I just compiled a BUNCH of stuff and...

nocona is very similar to core2.

The real question is, did you use optimized LDFLAGS? If not, there's your waste of time tongue

Offline

Board footer

Powered by FluxBB