* Best mcpu option for amcc440 with fpu ?
@ 2007-02-23 12:40 Patrice Bouchand
2007-02-23 13:27 ` Segher Boessenkool
0 siblings, 1 reply; 3+ messages in thread
From: Patrice Bouchand @ 2007-02-23 12:40 UTC (permalink / raw)
To: gcc-help
Hello,
I'm having trouble trying to find the best
compiling
option for amcc440 with fpu. I'm using a genuine
fedora core 6 ppc distro (gcc4.1.1). It seems that
using mcpu=440 gives better results than -mcpu=440fp,
even with floating point code ? What could be wrong on
my platform to give such a result ?
The test :
mandelbrot.c is available here:
http://magnux.free.fr/gcc/mandelbrot.c
--------------------
-bash-3.00# gcc -O2 -mcpu=440fp ./mandelbrot.c -o
./mandelbrot && time ./mandelbrot
real 1m15.016s
user 1m14.988s
sys 0m0.024s
-bash-3.00# gcc -O2 -mcpu=440 ./mandelbrot.c -o
./mandelbrot && time ./mandelbrot
real 0m39.606s
user 0m39.552s
sys 0m0.028s
-bash-3.00# gcc -O2 -msoft-float ./mandelbrot.c -o
./mandelbrot && time ./mandelbrot
real 0m39.577s
user 0m39.544s
sys 0m0.032s
-bash-3.00# gcc -O2 ./mandelbrot.c -o ./mandelbrot &&
time ./mandelbrot
real 1m15.059s
user 1m14.996s
sys 0m0.060s
___________________________________________________________________________
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses
http://fr.answers.yahoo.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Best mcpu option for amcc440 with fpu ?
2007-02-23 12:40 Best mcpu option for amcc440 with fpu ? Patrice Bouchand
@ 2007-02-23 13:27 ` Segher Boessenkool
2007-02-24 10:42 ` Patrice Bouchand
0 siblings, 1 reply; 3+ messages in thread
From: Segher Boessenkool @ 2007-02-23 13:27 UTC (permalink / raw)
To: Patrice Bouchand; +Cc: gcc-help
> I'm having trouble trying to find the best
> compiling
> option for amcc440 with fpu. I'm using a genuine
> fedora core 6 ppc distro (gcc4.1.1). It seems that
> using mcpu=440 gives better results than -mcpu=440fp,
> even with floating point code ? What could be wrong on
>
> my platform to give such a result ?
Dunno. You need to hunt down more details first:
-- Run a profiler (oprofile, gprof) to pinpoint one
specific (preferably smallish) piece of code that has
a huge slowdown;
-- Look at the generated assembler code for that routine
to see what's up;
-- Try to figure out why that happened, or report back
here.
Segher
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Best mcpu option for amcc440 with fpu ?
2007-02-23 13:27 ` Segher Boessenkool
@ 2007-02-24 10:42 ` Patrice Bouchand
0 siblings, 0 replies; 3+ messages in thread
From: Patrice Bouchand @ 2007-02-24 10:42 UTC (permalink / raw)
To: Segher Boessenkool; +Cc: gcc-help
My program was running faster using mcpu=440 but was not giving the
awaited results (I should add a display sooner...). I was linking a
program build with soft-float setting against libraries using hard-float
setting.
Sorry for the noise and thanks for your time.
Patrice
Le vendredi 23 février 2007 à 14:16 +0100, Segher Boessenkool a écrit :
> > I'm having trouble trying to find the best
> > compiling
> > option for amcc440 with fpu. I'm using a genuine
> > fedora core 6 ppc distro (gcc4.1.1). It seems that
> > using mcpu=440 gives better results than -mcpu=440fp,
> > even with floating point code ? What could be wrong on
> >
> > my platform to give such a result ?
>
> Dunno. You need to hunt down more details first:
>
> -- Run a profiler (oprofile, gprof) to pinpoint one
> specific (preferably smallish) piece of code that has
> a huge slowdown;
> -- Look at the generated assembler code for that routine
> to see what's up;
> -- Try to figure out why that happened, or report back
> here.
>
>
> Segher
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-02-24 8:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-23 12:40 Best mcpu option for amcc440 with fpu ? Patrice Bouchand
2007-02-23 13:27 ` Segher Boessenkool
2007-02-24 10:42 ` Patrice Bouchand
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).