Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!bbn!uwmcsd1!ig!jade!ucbvax!NRL-ACOUSTICS.ARPA!menton%v5130b.DECnet From: menton%v5130b.DECnet@NRL-ACOUSTICS.ARPA ("V5130B::MENTON") Newsgroups: comp.sys.atari.st Subject: Fortran subroutines on ST Message-ID: <8712081652.AA21081@ucbvax.Berkeley.EDU> Date: Tue, 8-Dec-87 11:32:00 EST Article-I.D.: ucbvax.8712081652.AA21081 Posted: Tue Dec 8 11:32:00 1987 Date-Received: Sun, 13-Dec-87 11:46:57 EST Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: "V5130B::MENTON"Organization: The ARPA Internet Lines: 22 To those "real" programmers who use Fortran (in particular, Absoft's AC/Fortran on the ST), please be advised that several of the subroutines and functions in the fine book, "Numerical Recipes", will not run properly on the ST unless the Fortran statement "SAVE" is added to the routine. The "SAVE" statement should go just before any "DATA x.../a..." statements near the beginning of the routine. Apparently, the VAX Fortran compiler does the equivalent of having "SAVE" in the routine as a default. Without "SAVE", the subroutine bombs on the ST but runs fine on the VAX. With "SAVE", VAX and ST both work fine and give the same answers. Of course, if I had read "Numerical Recipes", p.14, where info on "SAVE" is discussed, I wouldn't have spent 3 days using the interactive debugger to figure out why the routine wasn't working! Naaaahhhh - reading the directions first is still an unacceptable alternative! Bob Menton KG3J MENTON@NRL-ACOUSTICS.ARPA ------