Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!quanta.eng.ohio-state.edu!icarus.eng.ohio-state.edu!kaul From: kaul@icarus.eng.ohio-state.edu (Rich Kaul) Newsgroups: comp.lang.fortran Subject: Re: FORTRAN porting question Message-ID: <1879@quanta.eng.ohio-state.edu> Date: 5 Apr 89 14:15:34 GMT References: <1868@quanta.eng.ohio-state.edu> <1951@devsys.oakhill.UUCP> Sender: news@quanta.eng.ohio-state.edu Reply-To: kaul@icarus.eng.ohio-state.edu (Rich Kaul) Distribution: usa Organization: The Ohio State University Dept of Electrical Engineering Lines: 40 In article <1951@devsys.oakhill.UUCP> steve@oakhill.UUCP (steve) writes: >This is a test to see if I crawl out from under my rock to talk about this, >right? :-) (actually I know better, but this is a variant of one of our never- >dying discussions). I don't give tests. I take them. *sigh* >This code is not portable. It is not good code. It is not standard >conforming (see I do say this :-)). I know of at least two major >compilers that will generate an infinite loop in this code. Therefore >it is not even portable. That seems to be the consensus of most of these writers and what I thought was the case when I posted this question. I thought it rather bad coding style (much of the other code in this package is worse). This code actually appears in a package that a company who caters to VMS VAXen sold us. We made the mistake of buying their "port" to the Suns, so I really do have some trouble talking to the originators of the code to see what their intentions were. Further, the only VMS VAX we have around here is so loaded that just getting logged on can be an accomplishment. Another reason to go with the HPs and Suns. As it turns out, I just went in and duplicated the behavior of the Sun compiler, which did loop, but started with k=2 in the loop. The program seems to work, but I have told people not to expect miracles and to double check their work :-) I'd like to thank everybody for their help. It really helps to have a good place to ask questions like this, especially since FORTRAN is not my primary programming language. At least, not since the PDP-11 under RT-11 got dumped. -rich -=- Rich Kaul | Richard Daley, Jr. is the front runner The Ohio State University | for mayor of Chicago. If recent history 2015 Neil Ave, Columbus, OH 43210 | is a guide, he will at least get his kaul@icarus.eng.ohio-state.edu | father's vote.