From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc89c,7e35f49d4d9340ab X-Google-Attributes: gidfc89c,public X-Google-Thread: 1164f8,7e35f49d4d9340ab X-Google-Attributes: gid1164f8,public X-Google-Thread: 109fba,7e35f49d4d9340ab X-Google-Attributes: gid109fba,public From: dsr@mail.lns.cornell.edu (Daniel S. Riley) Subject: Re: Division by zero crashes on DEC should be avoidable! Date: 1998/03/06 Message-ID: #1/1 X-Deja-AN: 331416273 References: <34FF7719.41C6@ned.dem.csiro.au> To: Andrew Ellerton Followup-To: comp.sys.dec Organization: LNS, Cornell U., Ithaca, NY 14853 Newsgroups: comp.sys.dec,comp.lang.c++,comp.unix.programmer [mailed and posted, followup-to set] Andrew Ellerton writes: > However, the C++ code will crash the entire application > on the DEC 4.0 version when it divides by zero. Is this > solvable by (for example) compiling with a certain switch? 'cxx -ieee', if you have a new enough version of cxx. If you are using g++, you will probably have to modify the code--I do not know of any way to get full IEEE semantics with g++ on the Alpha. -- Dan Riley dsr@mail.lns.cornell.edu Wilson Lab, Cornell University "History teaches us that days like this are best spent in bed"