This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bounds check & cross-language


N.M. Maclaren wrote:
All that a Fortran caller that provides bounds has to do is to supply
an identifying flag in a known place.

For instance, one could have a global variable, which contains (linked list with) the actual argument's bounds/type data and the proc-pointer address: Then, the checked routine can check me == current_procptr and use then the data - otherwise, it ignores it. If it does a call itself, it simply pushes is own arguments to the linked list - and pops it after the call.


(Though, the fun starts with deep nesting (e.g., recursion) and with threads.)

Tobias


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]