[comp.sys.mips] NaN feature

ramani@jhunix.hcf.jhu.edu (Ramani Duraiswami) (03/18/91)

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