From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,b06f4cacbfe0ca95 X-Google-Attributes: gid111c93,public From: Michael Walter Subject: Re: spurious FPE with g++ Date: 1999/08/06 Message-ID: <37AAA5DC.74CC02DB@physik.uni-freiburg.de>#1/1 X-Deja-AN: 509539405 Content-Transfer-Encoding: 7bit References: <3796DAB0.5FC44337@physik.uni-freiburg.de> <7n7voh$ah@news1.newsguy.com> Content-Type: text/plain; charset=us-ascii Organization: Rechenzentrum der Universitaet Freiburg, Germany Mime-Version: 1.0 Reply-To: Michael.Walter@physik.uni-freiburg.de Newsgroups: comp.os.linux.alpha Greg Lindahl wrote: > > Michael Walter writes: > > > and get spurious Floating point exception with properly tested > > source code, which runs on SGI-IRIX as well as on Pentium-PC's > > with g++ version > > That isn't proof. The SGI and g++ by default on Pentium PC's uses the > IEEE mode which allows infinity etc. By default on an Alpha, infinity > and NaN cause a fault. I would suggest using gdb to figure out exactly > what the fault is. You should also try the -mieee option to gcc. > > A common, different problem is that the default Alpha math libraries > generate IEEE extreme values even when -mieee is not specified. You > can get around that by using the Compaq math libraries, which never > return extreme values. > > -- g Thanks a lot, the -mieee helped. A comment on speed: We found the programs (Monte-Carlo calculations) to be very slow, using the standart libm.a math library, but the libfm and libffm helped to make the thing approx. 3 times faster ! Michael -- --------------------------------------------------------------- Michael Walter e-mail: Michael.Walter@physik.uni-freiburg.de Tel.: 0761 203 7696 Adr.: Abteilung Prof. J.S. Briggs Fak. f. Physik Hermann-Herder-Str. 3 79104 Freiburg ---------------------------------------------------------------