[Info-vax] Fortran
Bob Koehler
koehler at eisner.nospam.decuserve.org
Fri Dec 7 09:46:37 EST 2018
In article <pu9ebk$k2p$1 at panix2.panix.com>, kludge at panix.com (Scott Dorsey) writes:
> Bob Koehler <koehler at eisner.nospam.decuserve.org> wrote:
>>In article <3ce8252e-5eec-45c9-8dbf-d311cc8e27cd at googlegroups.com>, Galen <gltackett at gmail.com> writes:
>>> Probably a GE die-hards still using the three-branch IF as well? ;-)
>>
>> I know of 300,000 lines of Fortran that was written in the 1960s and
>> is full of both assigned GOTOs and calculated GOTOs. Some may have
>> been re-written in C by now, but not all, last I heard. It's in
>> daily use.
>
> Calculated GOTO is the number one way to slow your program execution down
> to a crawl. Time for a code review.
This may depend on your compiler, and th features of the architecture
it's compiling for.
But the solution, for the system which the 300,000 lines of code was
originally written for, was to use the much faster (at lest on that
system) assigned GOTOs.
And "fixing" it is your tax dollars at work.
More information about the Info-vax
mailing list