This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: What optimizaton flags should i use (g++-4.3.3,Linux,Core2Duo)?
- From: Bob Plantz <plantz at cds1 dot net>
- To: Martin Ettl <ettl dot martin at gmx dot de>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Wed, 22 Apr 2009 08:33:18 -0700
- Subject: Re: What optimizaton flags should i use (g++-4.3.3,Linux,Core2Duo)?
- References: <20090419151801.146500@gmx.net>
I don't have any good answers for you and am looking forward to
responses from others.
Meanwhile, it might be good to know if you are using 32-bit or 64-bit
mode. The default for gcc's floating point is x87 in 32-bit and it is
SSE2 in 64-bit. That may affect the performance of your code.
Does your application lend itself to any parallelization? For example,
openMP?
Bob
On Sun, 2009-04-19 at 17:18 +0200, Martin Ettl wrote:
> Hello all,
>
> i am playing around with g++-4.3.3 on Ubuntu Linux. The project i am working does a lot of floating point arithmetic (based on double variables). The testplattform i use, is a intel core 2 duo processor. So what optimization flags are good for this plattform? Currently i am using -O3 -funroll-loops, but there are a plenty other.
>
> Thanks in advance!
>
> Best regards
>
> Ettl Martin
>
>