SUMMARY: debugging FORTRAN

From: esci <esci_at_fastlane.net>
Date: Wed, 20 Jan 1999 12:11:11 -0600 (CST)

Basically, you can't! At best the FORTRAN support in ladebug is vestigal
and appears destined to remain so for the near future. There is currently
no support ofr intrinsic functions nor exponentials. It's not clear what
else is unsupported. A bigger worry is that the debugger will return an
answer which is incorrect. One can work around the problem by explicit use
of temporaries, e.g.

      tmp=sin(x)
      tmp=tmp**y

etc ad nauseum....

Doubtless this has significant implications for performance. I will probably
address the problem by means of a preprocessor which will transform code
such as:

      a = sin(x)
     & **y
     & + z

into:

      a = sin(x)
      a = a**y
      a = a + z

for debugging.


I didn't hear from anyone else who'd run into this, so I can only presume that
very little FORTRAN development is being done under DU. If anyone is interested
in the preprocessor send me email

Reg Beardsley
rhb_at_acm.org
Received on Wed Jan 20 1999 - 18:09:57 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:38 NZDT