From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10c696,c887bec98cd793ef X-Google-Attributes: gid10c696,public X-Google-Thread: 111c93,c887bec98cd793ef X-Google-Attributes: gid111c93,public From: michal@gortel.phys.ualberta.ca (Michal Jaegermann) Subject: Re: division by zero exceptions ? Date: 1998/10/26 Message-ID: <7117c0$rtu$1@pulp.ucs.ualberta.ca>#1/1 X-Deja-AN: 405106265 References: Followup-To: comp.os.linux.alpha,comp.os.linux.development.apps Organization: Disorganized Bits Reply-To: michal@gortel.phys.ualberta.ca Newsgroups: comp.os.linux.alpha,comp.os.linux.development.apps Conrad Sanderson (conrad@hive.me.gu.edu.au) wrote: : causes "Floating exception Exit 136", while on Intel PII is says: : "c = Inf", which is the "correct" answer. Read gcc documentantion, especially this part which explains what various -mieee-... options are about and compile using one of these (liek -mieee, for example). : Is there any way to make the Alpha do the same thing as PII ? Yep, but this has a performance impact as exceptions have to be serialized. : I know about linking with -mieee, but that makes programs run : too slow, so that is not a solution for me. Oh, so you heard some things. :-) If you do not care about values on exceptions you can always install "do nothing" signal handler for SIGFPE (see 'man signal' for details). But how about '-mieee-with-inexact'? Michal