Re: Huge program, no interfaces, ugh
- From: "Beliavsky" <beliavsky@xxxxxxx>
- Date: 31 Jan 2007 09:15:09 -0800
On Jan 31, 12:01 pm, "Ancient_Hacker" <g...@xxxxxxxxxxx> wrote:
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.
You could put all the code for functions and subroutines in a module
foo
and insert "use foo" in the main program -- doing so provides an
explicit
interface.
It looks like you are working with a FORTRAN 77 code -- the free
program
FTNCHEK is invaluable for checking interfaces.
.
- Follow-Ups:
- Re: Huge program, no interfaces, ugh
- From: Clive Page
- Re: Huge program, no interfaces, ugh
- From: Dan Nagle
- Re: Huge program, no interfaces, ugh
- References:
- Huge program, no interfaces, ugh
- From: Ancient_Hacker
- Huge program, no interfaces, ugh
- Prev by Date: Re: problem with library function
- Next by Date: Re: CVF and Vista
- Previous by thread: Huge program, no interfaces, ugh
- Next by thread: Re: Huge program, no interfaces, ugh
- Index(es):
Relevant Pages
|