[Info-vax] Fortran
Arne Vajhøj
arne at vajhoej.dk
Wed Dec 5 18:46:57 EST 2018
On 12/5/2018 4:01 PM, Scott Dorsey wrote:
> 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.
Why would it be that slow?
It seems to fit nicely with a VAX CASEL instruction.
But even without it then it would just be calculating an
index into the address array and jump to that.
Or am I missing something critical?
Arne
More information about the Info-vax
mailing list