From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 111c93,bdbe309bb84cd986 X-Google-Attributes: gid111c93,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: =?iso-8859-1?q?M=E5ns_Rullg=E5rd?= Newsgroups: comp.os.linux.alpha Subject: Re: Compaq C vs GCC-4.0.1 Date: Sun, 24 Jul 2005 13:23:28 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: individual.net kJJSpwurmo5znuierpR2AAZuFB2Yb8z67W7v9WYAwtdaDpRZDv User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.15 (Security Through Obscurity, linux) Cancel-Lock: sha1:vl2Uv+80TVyId2ukjVArhLbhIxU= Xref: g2news1.google.com comp.os.linux.alpha:372 "Robert M. Riches Jr." writes: >> "M�ns Rullg�rd" 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 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