* Very dissapointing results with GCC (EGCS) compiler
@ 1998-10-27 5:00 Peter Doering
1998-10-27 5:00 ` Bram Stolk
1998-10-27 5:00 ` Conrad Sanderson
0 siblings, 2 replies; 3+ messages in thread
From: Peter Doering @ 1998-10-27 5:00 UTC (permalink / raw)
Hi Linux friends,
I just compiled POVray 3.01 on my Alpha system (21164 533 Mhz), LX
board, 64MB Ram, Redhat Linux 5.1) and compared the results with the
Windows NT version (binary is available for download at the "Alpha NT
Source").
I added following compiler switches to the CFLAGS defined in the
makefile:
DALIGN=double
Then I finally could compile it with adding:
-O -mieee
with higher optimisation settings -O2 and -O3 i got an compiler error
message (signal 6). Without the -mieee switch i could compile it but it
immediately generated a "floating point exception" and dumped core.
with the command :
x-povray -ichess.pov +D +B1000 res640
it took POVray 44 seconds to render the picture.
I changed the settings to:
-O3 -ffloat-store
and it took POVray just 32 seconds to render the picture.
Another test run with the skyvase.pov file unfortunately created a
"floting point exception" so that solution seemed to be not too stable
even though the speedup was pretty hefty.
BUT,
the Windows NT version just needs 20 seconds !!!!! to render the same
file with the same resolution and settings which makes the egcs compiler
output look like a snake.
Is this just due to the -mieee compiler setting or is the egcs compiler
not mature (to say the least) enough on the alpha platform under Linux
?????
It would be interresting if somebody has expierience and comparable
benchmark results with the DIGITAL compiler under DIGITAL Unix
P. Doering
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Very dissapointing results with GCC (EGCS) compiler
1998-10-27 5:00 Very dissapointing results with GCC (EGCS) compiler Peter Doering
@ 1998-10-27 5:00 ` Bram Stolk
1998-10-27 5:00 ` Conrad Sanderson
1 sibling, 0 replies; 3+ messages in thread
From: Bram Stolk @ 1998-10-27 5:00 UTC (permalink / raw)
Hi,
libm is rather slow.
use the faster libffm
Just replace -lm with -lffm
The libffm library is at
http://people.frankfurt.netsurf.de/Joachim.Wesner/
Bram
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Very dissapointing results with GCC (EGCS) compiler
1998-10-27 5:00 Very dissapointing results with GCC (EGCS) compiler Peter Doering
1998-10-27 5:00 ` Bram Stolk
@ 1998-10-27 5:00 ` Conrad Sanderson
1 sibling, 0 replies; 3+ messages in thread
From: Conrad Sanderson @ 1998-10-27 5:00 UTC (permalink / raw)
On 27 Oct 1998 01:45:57 GMT, Peter Doering <headroom@worldnet.att.net> wrote:
> I just compiled POVray 3.01 on my Alpha system (21164 533 Mhz), LX
> board, 64MB Ram, Redhat Linux 5.1) and compared the results with the
> ...
> Then I finally could compile it with adding:
> -O -mieee
>
> with higher optimisation settings -O2 and -O3 i got an compiler error
> message (signal 6). Without the -mieee switch i could compile it but it
> immediately generated a "floating point exception" and dumped core.
Try -funroll-all-loops as well. This will generate larger code,
but it will run noticeably faster. The -O option is just a
"better than nothing" optmization.
The -O2 and -O3 enable a whole multitude of other optimizations,
which can be turned on individually. See the man page for gcc or
look at the TexInfo documentation (really only readable via KDE's
Help browser).
That way you can find which optimization is causing the compiler
problem and send off an bug report to the EGCS folk.
> ...
>the Windows NT version just needs 20 seconds !!!!! to render the same
>file with the same resolution and settings which makes the egcs compiler
>output look like a snake.
>
>Is this just due to the -mieee compiler setting or is the egcs compiler
>not mature (to say the least) enough on the alpha platform under Linux
>?????
There are 3 seperate problems why Alpha/Linux egcs compiled code is slow:
1) the math library used by egcs is VERY SLOW. You can get a much
faster version at: http://people.frankfurt.netsurf.de/Joachim.Wesner/
Compile libffm and when compiling povray, link it with libffm.
(eg. assuming libffm.a is in the current directory:
gcc stuff.c -o stuff -L. -lffm)
2) the quality of the code generated by EGCS for the Alpha is not in the
same league as Digital UNIX C on Alpha or EGCS on Intel.
3) The -mieee is needed becuase of the way the povray code is written.
It (correctly?) assumes that the target machine is fully IEEE math
conformant. The Alpha chip supports a subset of the IEEE math
standard "for performance reasons". This seems like a oxymoron in
retrospect.
If you had the urge for it, You could modify the povray
code to add some checks in right places and hence compile without
-mieee.
--
Conrad Sanderson - Microelectronic Signal Processing Laboratory
Griffith University, Queensland, Australia
http://spl.me.gu.edu.au [ under construction ]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1998-10-27 5:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-10-27 5:00 Very dissapointing results with GCC (EGCS) compiler Peter Doering
1998-10-27 5:00 ` Bram Stolk
1998-10-27 5:00 ` Conrad Sanderson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox