From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,43b58aea62fe6b03 X-Google-Attributes: gid103376,public From: Rolf Ebert Subject: Re: Perl script to show dependencies Date: 1996/10/21 Message-ID: #1/1 X-Deja-AN: 191556276 references: organization: R. Ebert at home newsgroups: comp.lang.ada Date: 1996-10-21T00:00:00+00:00 List-Id: On 10 Oct 1996, Robert Dewar wrote: > Rolf said > > "The following is a simple minded perl-script which analyses Ada files > and generates a spreadsheet of the dependencies between the Ada units. > I wrote it, because I wanted to know about the relation between several > units before reorganizing a project." > > Wouldn't it be better to use the dependency information in the ali files, > because then you would pick up inlining and generic body dependencies as > well. I was not interested in the dependancies which concern the compiler, but in the logical dependancies between the modules. I wanted to apply the rule of a thumb saying "if there are too many with clauses (~> 8), think about your design". Even for that pupose it might be a good idea to use the ALI files as they reliably contain *all* with clauses (lines starting with W) whereas my script is limited to a certain style for writing with clauses. Rolf ebert@waporo.muc.de