From: "Måns Rullgård" <mru@inprovide.com>
Subject: Re: Compaq C vs GCC-4.0.1
Date: Sun, 24 Jul 2005 13:23:28 +0100 [thread overview]
Message-ID: <yw1xwtngz933.fsf@inprovide.com> (raw)
In-Reply-To: slrnde5qf3.snr.rob@one.localnet
"Robert M. Riches Jr." <spamtrap42@verizon.net> writes:
>> "M�ns Rullg�rd" <mru@inprovide.com> wrote in message
>>>
>>> I remember having to use -mieee when compiling povray with ccc.
>>> Otherwise the rendered images would look quite weird. Unfortunately,
>>> -mieee can slow things down a bit. Is that flag still required?
>
> On 2005-07-23, DiskMan <nobody@thewheel.com> wrote:
>> Na I didn't use mieee, thought about it though... I do have a few
>> probs with the CCC/GCC, they will segfault if you use the 'wrong'
>> option in the povray.ini file. Haven't found a good way around that
>> one... Normally it will segfault on something called "Parsing 20K
>> tokensSegmentation fault" and another, something about calculating
>> floats... I don't happen to have a copy of that one. It affects
>> both CCC and GCC by the way...
>
> Just in case a bit of tribal knowledge has gone away, back
> in the days of RedHat 7.2 on Alpha, it was necessary to use
> -mieee when compiling any serious floating point program.
> Without that option, a gradual underflow situation will
> cause a fault. However, it was a floating point exception,
> not a segmentation fault--although the description by
> DiskMan does leave a little doubt about that observation.
The floating point exception without -mieee is not the only thing that
can go wrong. It's a while ago, so I can't remember the details
exactly, but I compiled povray with ccc and all optimizations turned
on. The result worked fine for most images, but some had strange
errors in them. On the chess board sample included, all the pieces
came out as colored blobs. IIRC, it was related to the use of focal
blur.
> At the time I asked about the -mieee option, the experts
> around at that time said it would slow down the program. I
> didn't do a lot of benchmarking, but I did make a few speed
> measurements, and I never saw a significant slowdown.
Using -mieee can cause a significant slowdown. How much depends on
the application. The documentation for the option might give some
clues:
-mieee
The Alpha architecture implements floating-point hardware
optimized for maximum performance. It is mostly compliant with
the IEEE floating point standard. However, for full compliance,
software assistance is required. This option generates code fully
IEEE compliant code _except_ that the INEXACT-FLAG is not
maintained (see below). If this option is turned on, the
preprocessor macro `_IEEE_FP' is defined during compilation. The
resulting code is less efficient but is able to correctly support
denormalized numbers and exceptional IEEE values such as
not-a-number and plus/minus infinity. Other Alpha compilers call
this option `-ieee_with_no_inexact'.
--
M�ns Rullg�rd
mru@inprovide.com
prev parent reply other threads:[~2005-07-24 12:23 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-11 22:07 Compaq C vs GCC-4.0.1 DiskMan
2005-07-11 22:48 ` uNiX pSyChO
2005-07-12 2:56 ` DiskMan
2005-07-13 23:44 ` DiskMan
2005-07-20 18:39 ` Måns Rullgård
2005-07-22 5:01 ` DiskMan
2005-07-23 13:38 ` Måns Rullgård
2005-07-23 23:24 ` DiskMan
2005-07-24 1:07 ` Robert M. Riches Jr.
2005-07-24 12:23 ` Måns Rullgård [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox