Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: wolter@wppc9.physik.Uni-Wuppertal.DE (Robert Wolter)
Subject: DEC F77 on Ultrix 4.3a and OSF 1.2 vs f2c on Linux 1.1.x
Date: 7 Feb 1995 00:25:13 GMT	[thread overview]
Message-ID: <3h6el9$jtr@wmwap1.math.Uni-Wuppertal.DE> (raw)

I just got a very strange experience:

consider a REAL variable RBUF, a REAL array XREC(A), where A is an
INTEGER and set to some value, say 20 
      PARAMETER(A=20)

Now consider the intrinsic function LOG10: it takes one argument,
a REAL variable. 

My experience now is as follows:
I assign
      IF (XREC(A).GT.0.0) THEN 
        R=LOG10(XREC(A))
      ENDIF
and it works for several times on either
a DECstation running Ultrix 4.3a or DEC Alpha running OSF 1.2.
Then the system suddenly reports a floating point error, divide by zero.

I then compile and run the program on a PC 486 running Linux 1.1.73
and using f77 from the f2c package, and it works!

Now I assign the argument  to a buffer variable:
      IF (XREC(A).GT.0.0) THEN
        RBUF=XREC(A)
        R=LOG10(RBUF)
      ENDIF
and it works also on Ultrix and OSF systems!

My question now: Is this a bug or a feature?

Can DEC managers live in peace with the fact that a free 
FORTRAN compiler (f2c) works more intelligent than a 
commercial high-priced product :) ?

Cheers
  Robert Wolter
  wolter@wppc9.uni-wuppertal.de


             reply	other threads:[~1995-02-07  0:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-02-07  0:25 Robert Wolter [this message]
1995-02-11  2:06 ` DEC F77 on Ultrix 4.3a and OSF 1.2 vs f2c on Linux 1.1.x Steve Lionel
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