comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Dewar <robert_dewar@my-deja.com>
Subject: Re: 'with'ing and 'use'ing
Date: 2000/03/04
Date: 2000-03-04T00:00:00+00:00	[thread overview]
Message-ID: <89rpuc$n9p$1@nnrp1.deja.com> (raw)
In-Reply-To: 38BEF1A3.24B566BF@earthlink.net

In article <38BEF1A3.24B566BF@earthlink.net>,
  Charles Hixson <charleshixsn@earthlink.net> 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.




  parent reply	other threads:[~2000-03-04  0:00 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-02-29  0:00 'with'ing and 'use'ing Roger Hoyle
2000-02-29  0:00 ` Jeffrey Carter
2000-02-29  0:00   ` Brian Rogoff
2000-03-01  0:00     ` Jean-Pierre Rosen
2000-03-02  0:00       ` Charles Hixson
2000-03-02  0:00         ` Robert A Duff
2000-03-02  0:00           ` Ted Dennison
2000-03-02  0:00             ` Charles Hixson
2000-03-02  0:00               ` David Starner
2000-03-03  0:00                 ` Jeff Carter
2000-03-03  0:00                   ` David Starner
2000-03-04  0:00                     ` Simon Wright
2000-03-03  0:00                 ` Ted Dennison
2000-03-07  0:00                   ` Nick Roberts
2000-03-03  0:00               ` Marin D. Condic
2000-03-03  0:00                 ` Scott Ingram
2000-03-04  0:00                   ` Simon Wright
2000-03-03  0:00               ` Larry Kilgallen
2000-03-04  0:00               ` Robert Dewar [this message]
2000-03-04  0:00                 ` Ehud Lamm
2000-03-06  0:00                 ` Charles Hixson
2000-03-06  0:00                   ` Robert Dewar
2000-03-03  0:00       ` Charles H. Sampson
2000-03-04  0:00         ` Jean-Pierre Rosen
2000-03-06  0:00         ` Ted Dennison
2000-03-06  0:00           ` Charles H. Sampson
2000-03-07  0:00             ` Stuart Palin
2000-03-08  0:00               ` Robert Dewar
2000-03-09  0:00                 ` Stuart Palin
2000-03-06  0:00           ` Ted Dennison
2000-03-06  0:00             ` Robert A Duff
2000-03-06  0:00               ` tmoran
2000-03-06  0:00             ` Robert Dewar
2000-03-07  0:00               ` Marin D. Condic
2000-03-07  0:00               ` Ted Dennison
2000-03-07  0:00             ` Marin D. Condic
2000-03-06  0:00           ` Robert Dewar
2000-03-07  0:00             ` Ted Dennison
2000-03-08  0:00               ` Robert Dewar
2000-03-11  0:00                 ` Robert A Duff
2000-02-29  0:00 ` Ted Dennison
2000-03-01  0:00   ` Robert Dewar
2000-03-01  0:00     ` Ted Dennison
2000-03-01  0:00       ` Robert Dewar
2000-03-01  0:00         ` Ted Dennison
2000-03-01  0:00           ` Wes Groleau
2000-03-02  0:00             ` Robert Dewar
2000-02-29  0:00 ` xl
2000-02-29  0:00   ` Jeffrey Carter
2000-02-29  0:00     ` xl
2000-03-01  0:00   ` Roger Hoyle
2000-02-29  0:00 ` David Starner
2000-02-29  0:00 ` Robert A Duff
2000-02-29  0:00   ` Ted Dennison
2000-03-01  0:00   ` Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox