From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,8af2b7c3b8412982 X-Google-Attributes: gidfee84,public From: "Steve Lionel" Subject: Re: About DEC Fortran Date: 1998/11/12 Message-ID: <72f1jj$qsk@usenet.pa.dec.com>#1/1 X-Deja-AN: 411123926 References: <72aluq$f0g$1@nnrp1.dejanews.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.0810.800 Organization: Compaq Computer Corporation - Nashua, NH X-MSMail-Priority: Normal Newsgroups: comp.unix.osf.osf1 wrote in message news:72aluq$f0g$1@nnrp1.dejanews.com... >Hi,all, I meet problems about DEC Fortran. In DEC C, there >is -ieee option, so I can avoid NaN problem, and the time >spent in computing is fast. But in DEC Fortran, I can not >find -ieee option, there are just -fpe0,-fpe1,-fpe2,-fpe3 >options, If I do not use one of them, my program will report >floating error. If I use one of them, the time is very slow. >Why? Does anyone know it? If you know, please help me. The DEC C -ieee switch is equivalent to DEC Fortran's -fpe3 switch, and the two do the same things. With the default setting, overflows, zerodivides, etc. generate errors and underflows silently get set to zero. This is the fastest mode on Alpha. -fpe3 allows Infinities and NaNs and denormalized values to be created - NaNs generally cause errors when used, but not always, depending on the context. I would concur with the suggestion that you analyze your program and find out where the errors are occurring, and then determine what you want to do about them. Just setting -fpe3 without understanding what it does will often lead to incorrect results. Steve Lionel mailto:Steve.Lionel@digital.com DIGITAL Fortran Development http://www.digital.com/info/slionel.html Compaq Computer Corporation 110 Spit Brook Road, ZKO2-3/N30 Nashua, NH 03062-2698 "Free advice is worth every cent" DIGITAL Fortran web site: http://www.digital.com/fortran