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=-0.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7ff9ceefe1fd4826 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-07-03 04:21:02 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!212.177.105.133!news.mailgate.org!news-zh.switch.ch!newsfeed-zh.ip-plus.net!news.ip-plus.net!not-for-mail From: Thomas Wolf Newsgroups: comp.lang.ada Subject: Re: AdaBrowse 2.1 Date: Wed, 3 Jul 2002 13:20:51 +0200 Organization: --- Message-ID: References: Reply-To: t_wolf@angelfire.com NNTP-Posting-Host: pargate2.paranor.ch X-Trace: rex.ip-plus.net 1025695243 17698 195.65.4.190 (3 Jul 2002 11:20:43 GMT) X-Complaints-To: abuse@ip-plus.net NNTP-Posting-Date: Wed, 3 Jul 2002 11:20:43 +0000 (UTC) X-Newsreader: MicroPlanet Gravity v2.50 Xref: archiver1.google.com comp.lang.ada:26838 Date: 2002-07-03T13:20:51+02:00 List-Id: David@Botton.com wrote: > I've made available the GNAT-3.14p Runtime on AdaPower at > http://www.adapower.com/lang/gnatrun/packages.html using AdaBrowse 2.01 > (I didn't have a chance to update yet to the new version). Nice. I also noted that the GWindows reference has been generated with AdaBrowse. Hm. I somehow didn't think that anybody would like to process the standard Ada library with AdaBrowse -- I myself tried once, and was disappointed because (at least the GNAT) sources do contain only very few comments. It would have been nice if these sources included the relevant RM paragraphs as comments. Then one could get a really useful HTML docu... After having looked at the generated docu, I decided to add a -g command-line option to AdaBrowse that makes it generate cross-references to items from the standard library, too. (It didn't do that until now, because I had problems dealing with implicit items from Standard. Also, part of the reason for this restriction was that early versions of AdaBrowse couldn't deal with krunched filenames, and GNAT's whole standard library uses krunched names...) Hence, the current version of AdaBrowse is 2.11, available now at the URL http://home.tiscalinet.ch/t_wolf/tw/ada95/adabrowse/ AdaBrowse 2.11 has passed all my regression tests (which now include generating a full docu for the standard lib of GNAT 3.14p). New features: 1. A -g command-line switch. If set, AdaBrowse generates cross- references to items from the standard library (except those from package Standard), too. 2. A new configuration file key "Refs_To_Standard"; its value must be "True" or "False" (without the quotes). If True, same as "-g" on the command line. If False, switches off generation of cross-refs to standard items. 3. Bug correction: 2.1 had a bug which made it handle "Path" prefixes case-sensitively. Would work only if the unit name prefix in the key was given in all lowercase. I.e. "Path.Ada = ..." wouldn't work, but "Path.ada = ..." worked. This is corrected in 2.11; both work now. 4. Major speed improvement: AdaBrowse tries to minimize the number of times ASIS contexts are opened and closed. This appears to be a time-consuming operation in ASIS-for-GNAT, and also seems to incur memory leaks. BTW, I tried generating the HTML docu for GNAT's standard lib using (on Win 2k) set SRCS=x:\gnat\lib\gcc-lib\pentium-mingw32msv\2.8.1\adainclude for %%i in (%SRCS%\*.ads) do \ gcc -c -gnatg -gnatc -gnatt -I%SRCS% -I- %%i ls -1 *.adt | %ADABROWSE_HOME%\adabrowse -g -f- -T. -I%SRCS% \ -o.\AdaBrowse_Output\ -is -t -p In other words, I first generated all the *.adt files, and then let adabrowse run on all of them. Before the speed optimization (#4 above), that took 92 minutes and AdaBrowse used up 180Mb of virtual memory on my machine. After the optimization, this now takes about 1 minute and uses some 5Mb of memory. -- ----------------------------------------------------------------- Thomas Wolf e-mail: t_wolf@angelfire.com