From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,9e636c8c1728563 X-Google-Attributes: gid111c93,public X-Google-ArrivalTime: 2002-12-05 19:40:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!rover.ucs.ualberta.ca!not-for-mail From: Michal Jaegermann Newsgroups: comp.os.linux.alpha Subject: Re: Q: floatingpoint exceptions Date: 6 Dec 2002 03:35:13 GMT Organization: Disorganized Bits Message-ID: References: <87isy8yv5n.fsf@new.home-net.stg> NNTP-Posting-Host: gortel.phys.ualberta.ca User-Agent: tin/1.5.13-20020614 ("Sugar") (UNIX) (Linux/2.4.18-18.7.x (i686)) Xref: archiver1.google.com comp.os.linux.alpha:6687 Torsten Zirzlaff wrote: > > Any idea what is wrong that I receive with several programs a > floatingpoint exception? These are not programs written by me, but > programs from my distro (Debian 3.0) e.g. glplanet. > > Often those programs are graphics related, but not in every case. On > my intel box they behave and run smoothly. Intel FPU allows you to get away with things like dividing by zero, or something pretty close to it. On Alpha running full speed floating point exceptions are inexact and cannot be restarted hence attempts to divide by zero are deadly. You can workaround that by using -mieee flag while compiling. This has a performance hit but unless you are really taking care how a floating point arithmetic is peformed this can be the only practical option. Graphics stuff is pretty infamous for playing loose with a floating point. Look in gcc docs for descriptions of '-mieee', '-mieee-with-inexact' and '-mieee-conformant' for more details. Michal