Up to 20 years ago, there was a fairly common practice of writing code using a single subscripted array to step through a multiple subscripted array, and a range checker which could accept that practice but detect likely deviations could be of value. Optimizers have made enough progress that there's little excuse for that now.
Tim
robin <[log in to unmask]> wrote:
Some F77 compilers did provide bounds checking, but
of those that did, some resorted to tricks on the
pretext of "saving time", pretending that they did
(proper) subscript checking.
One was that if the computed address was within the
array, then it was "valid" (even if one or more subscripts
was out-of-bounds).
Subscript checking in F90 and F95 compilers is, in general, more rigorous
than in the days of F77.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|