Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!jhunix!jhunix.hcf.jhu.edu From: ramani@jhunix.hcf.jhu.edu (Ramani Duraiswami) Newsgroups: comp.sys.mips Subject: NaN feature(?)/bug in Mips fortran Message-ID: <7794@jhunix.HCF.JHU.EDU> Date: 18 Mar 91 04:34:35 GMT Sender: ramani@jhunix.HCF.JHU.EDU Organization: The Johns Hopkins University - HCF Lines: 20 MIPS fortran query. Programming/Debugging in MIPS (and SUN) fortran, after years of programming on a Vax, is a pain in the butt because of the NaN/Infinity "feature." It is very smart of the code to realize that sqrt(-1) is Not a Number, or that 1/0 is infinity, but debugging huge codes becomes impossible, especially as no information as to which line the mistake first occurred is available. I guess my questions then are... 1) Is there a compiler option to turn this ``feature'' off? 2) If not, Why Not? 3) Is there a smart way in dbx to make the program stop at the first occurrence of a NaN/Infinity event? Thanks in anticipation ramani