Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: "Steve Lionel" <Steve.Lionel@digital.com>
Subject: Re: About DEC Fortran
Date: 1998/11/12	[thread overview]
Message-ID: <72f1jj$qsk@usenet.pa.dec.com> (raw)
In-Reply-To: 72aluq$f0g$1@nnrp1.dejanews.com

<wuqb@nudt.edu.cn> 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







      parent reply	other threads:[~1998-11-12  5:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-11-11  5:00 About DEC Fortran wuqb
1998-11-11  5:00 ` Dan Pop
1998-11-12  5:00 ` Steve Lionel [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox