Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: kmf8970@ultb.isc.rit.edu (K.M. Ford )
Subject: FLECS Problem on an ALPHA
Date: Fri, 15 Jul 1994 02:45:37 GMT	[thread overview]
Message-ID: <1994Jul15.024537.5415@ultb.isc.rit.edu> (raw)

I am trying to compile source files on a DEC Alpha system. I am using a
FLECS preprocessor. The problem is the that the FLECS preprocessor produces
incorrect statement labels in the FORTRAN files it generates. On the VAX
that I originated this port from, everything is fine.

Here are the details:

I am using the following:

  FLECS Translator Ver 24.01 ( 1974 Version for which I have the source;
                               getting an updated version would be a real
                               hassle for a variety of reasons. )

  DEC FORTRAN Ver 5.6 - VMS VAX systems (Ver 5.5)
  DEC FORTRAN Ver 6.1 - OpenVMS AXP systems (Ver 1.5)

After compiling and then executing FLECS on an input file, I got a Fortran
file with incorrect statement labels (on the AXP system).  On the VAX it works
fine using the NOI4 option when compiling the FLECS source files.

Sample input file (TEST.FLX)

          PROGRAM MAIN
          WHEN (X.GT.5)
            Y=12
          FIN
          ELSE
            Y=X+4
            DO-SOMETHING
          FIN
          CALL EXIT

          TO DO-SOMETHING
            REPEAT UNTIL (Z.GT.3)
               H=4
            FIN
          FIN


a)   Output file (FLECS compiled under AXP FORTRAN V6.1 with /NOI4)
     Not good

          PROGRAM MAIN
          IF(.NOT.(X.GT.5)) GO TO 02175
          Y = 12
          GO TO 02175
02175     Y = X + 4
          ASSIGN 02175 TO I02175
          GO TO 02175
02175     CONTINUE
02175     CALL EXIT
02175     GO TO 02175
02175     IF (Z.GT.3) GO TO 02175
02175     H=4
          GO TO 02175
02175     GO TO I02175
          END

b)   Output file (FLECS compiled under AXP FORTRAN V6.1 with /NOI4/NOOPT)
     Close, but still not good

          PROGRAM MAIN
          IF(.NOT.(X.GT.5)) GO TO 01850
          Y = 12
          GO TO 01851
01850     Y = X + 4
          ASSIGN 00011 TO I00895
          GO TO 00895
00011     CONTINUE
01851     CALL EXIT
00895     GO TO 02175
0000/     IF (Z.GT.3) GO TO 0000-
0000.     H=4
          GO TO 0000/
0000-     GO TO I00895
          END



c)   Output file (FLECS compiled under VAX FORTRAN V5.5 with /NOI4)
     This output is valid!

          PROGRAM MAIN
          IF(.NOT.(X.GT.5)) GO TO 32758
          Y = 12
          GO TO 32759
32758     Y = X + 4
          ASSIGN 32756 TO I32757
          GO TO 32757
32756     CONTINUE
32759     CALL EXIT
32757     GO TO 32754
32755     IF (Z.GT.3) GO TO 32753
32754     H=4
          GO TO 32755
32753     GO TO I32757
          END


For anyone that might have a solution or suggestion, my thanks in
advance.



Kevin M Ford
kmf8970@ultb.isc.rit.edu


                 reply	other threads:[~1994-07-15  2:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
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