* FLECS Problem on an ALPHA
@ 1994-07-15 2:45 K.M. Ford
0 siblings, 0 replies; only message in thread
From: K.M. Ford @ 1994-07-15 2:45 UTC (permalink / 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1994-07-15 2:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-07-15 2:45 FLECS Problem on an ALPHA K.M. Ford
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox