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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9e9f299a881137c6 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!news.germany.com!xlned.com!feeder1.xlned.com!news.astraweb.com!border2.a.newsrouter.astraweb.com!hwmnpeer01.ams!news.highwinds-media.com!feeder5.cambrium.nl!feed.tweaknews.nl!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: ASIS? References: <1193392044.600378.120160@i13g2000prf.googlegroups.com> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Date: Fri, 26 Oct 2007 12:09:27 +0200 Message-ID: <877ilafaqw.fsf@ludovic-brenta.org> Cancel-Lock: sha1:9lSrOk5HSwuYiFemw7222DR22Tg= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Tele2 X-Trace: DXC=V09CUCA_XBn`TU=CDSgiba6`Y6aWje^Yj34W0LB3d:]kQe0>=4DdV@`j^iAY;2O5Hake384C8@Fgo Xref: g2news2.google.com comp.lang.ada:2575 Date: 2007-10-26T12:09:27+02:00 List-Id: parthaspanda22@gmail.com writes: > If one were to need an API to fulfill all requirements by a > Debugger, Source Browser and a Syntax-aware editor from the IDE, > then would ASIS be it? The debugger does not need all the capabilities of ASIS; only line numbers and type descriptions. That's what GDB gets from the object files generated by GNAT with -g. The editor does not need all the capabilities of ASIS. For example, emacs, GPS and Eclipse all do syntax highlighting without ASIS. The source browser is probably the one component that would benefit from ASIS the most; however an alternative is gnatfind which uses the .ali files generated by GNAT for cross-references. GPS uses gnatfind, not ASIS, for this functionality. In contrast, adabrowse generates an HTML description of a program, with hyperlinks, using ASIS. However, the answer to your question is probably yes: ASIS would provide all the information needed, and more, to the debugger, browser and editor, in a single interface. > Can a compilation environment just provide an ASIS interface for > third-party debuggers, source browsers and syntax-aware editors to > plug-in and work well? Yes but the word "just" is often the sign of a mistake and rings an alarm bell in my head whenever I see or hear it :) In this case, it hides these problems: 1) The complexity of providing the ASIS interface and that of using it from all tools. 2) The ASIS interface can only be provided on legal, compiling program text. Any program with compile-time errors in it would be impossible to browse (using the source browser) and the editor would have to be particularly smart in deciding when to call the compiler to regerenate the ASIS information. 3) In the worst of cases, regenerating the ASIS data can cause massive recompilations and be too slow for interactive use. > Is a C interface available? Not that I know. Why do you ask? -- Ludovic Brenta.