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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c2f62556e56c9683 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: 'with'ing and 'use'ing Date: 2000/03/04 Message-ID: <89rpuc$n9p$1@nnrp1.deja.com>#1/1 X-Deja-AN: 593163848 References: <38BC2EB3.2639372B@acm.org> <89l6aj$s5e$1@wanadoo.fr> <38BE974F.B8FAFEBE@earthlink.net> <89ml92$5c1$1@nnrp1.deja.com> <38BEF1A3.24B566BF@earthlink.net> X-Http-Proxy: 1.0 x26.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Sat Mar 04 19:59:10 2000 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; I) Date: 2000-03-04T00:00:00+00:00 List-Id: In article <38BEF1A3.24B566BF@earthlink.net>, Charles Hixson wrote: > A good cross-reference tool would be better, but I haven't > seen one recently. Have you looked at the xref tools provided as part of GNAT? > The trouble is that any tool that can tell enough to figure > out where a link comes from, needs enough built in knowledge > to be pretty expensive to build so unless AdaCore starts > including it in the GNAT package, I'm unlikely to > be able to afford it (which is why the tools I *am* aware of > target C++). Difficult to "start" including something that is already there! GNAT by default generates full xref information in the ali files for all compilations. This has been true for quite a while. A number of tools use this information: 1. gnatxref, a conventional xref utility 2. gnatfind, more oriented to finding specific entities 3. ada mode for emacs, providing integrated "find the declaration of this entity", "jump to corresponding body" etc capabilities. 4. Similar capabilities integrated into GLIDE, the new integrated development environment for GNAT. 5. cross-referencing capabilities in AdaGIDE, as mentioned elsewhere in this thread. The format of the ali files is quite simple, and fully documented (in the lib-writ.adb file). The above tools are likely to meet most people's requirements for "cross-referencing" tools, but there are undoubtedly other variations that would be useful. The whole idea of this facility, of which you are apprently unaware, is precisely to allow tool builders to build tools of this kind without needing compiler smarts. > The trouble is that any tool that can tell enough ... Don't invent trouble where none exists :-) Of course you can also use ASIS for heavier duty applications, but it is remarkable how useful the basic entity cross-reference information in the ali files is for many tool applications. Robert Dewar Ada Core Technologies Sent via Deja.com http://www.deja.com/ Before you buy.