Huge program, no interfaces, ugh



HI, I have this relatively huge program, about 40,000 lines in 183
source files.

I've found lots of errors in the source code caused by arguments that
don't match the subroutine dummy argument type.

But the compiler doesnt find many of these by itself, as none of the
subroutines had interfaces (to start out with). I'm building up
interfaces as I go along, but the task is error-prone-- if I forget to
add "use glue" to a subroutine, it will silently compile anyway and
generate bad calls.

It sure would be nice if the compiler required interfaces for every
called function or subroutine.

Is there some Fortran option to require these?

Thanks,

grg

.



Relevant Pages

  • Re: Huge program, no interfaces, ugh
    ... don't match the subroutine dummy argument type. ... But the compiler doesnt find many of these by itself, ... subroutines had interfaces. ...
    (comp.lang.fortran)
  • Re: Subroutine Argument Checking
    ... > subroutine argument count, type and rank mismatches and it found several ... Fortran 77 I believe, like Fortran 66 allows subroutines to be ... compilation the compiler can't really check. ... I presume ftnchek will find mismatches between any source files ...
    (comp.lang.fortran)
  • Re: Huge program, no interfaces, ugh
    ... don't match the subroutine dummy argument type. ... But the compiler doesnt find many of these by itself, ... subroutines had interfaces. ... use a text editor to turn END into END SUBROUTINE ...
    (comp.lang.fortran)
  • Re: Grundsatzfrage zum Klassen-Design
    ... Dass, wenn sich Tabellen ändern, sowohl Du als auch ich in den Code ... Sicherlich haben Interfaces ihren Zweck. ... den Compiler zum Generieren von Fehlermeldungen zu bewegen. ... weil mich SPs nun endgültig auf eine DBE festnageln. ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)
  • Re: Apple IIGS ROM 1 or ROM 3, which is better?
    ... of the *simple* indirection cost can be amortized, but compiler ... and every methodology has a terrible dark side. ... code with firm interfaces allowing isolation and factorization. ... the most demanding design activities. ...
    (comp.sys.apple2)