From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1094ba,afa27541995b0b07,start X-Google-Attributes: gid1094ba,public X-Google-Thread: 1164f8,afa27541995b0b07,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-07-15 06:59:28 PST Newsgroups: comp.lang.fortran,comp.sys.dec Path: bga.com!news.sprintlink.net!hookup!swrinde!pipex!sunic!trane.uninett.no!eunet.no!nuug!EU.net!uunet!psinntp!isc-newsserver!ultb!kmf8970 From: kmf8970@ultb.isc.rit.edu (K.M. Ford ) Subject: FLECS Problem on an ALPHA Message-ID: <1994Jul15.024537.5415@ultb.isc.rit.edu> Sender: news@ultb.isc.rit.edu (USENET News System) Nntp-Posting-Host: ultb-gw.isc.rit.edu Reply-To: kmf8970@ultb.rit.edu () Organization: Rochester Institute of Technology Date: Fri, 15 Jul 1994 02:45:37 GMT Xref: bga.com comp.lang.fortran:3890 comp.sys.dec:4363 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