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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.129.154.205 with SMTP id r196mr17347250ywg.48.1445656701173; Fri, 23 Oct 2015 20:18:21 -0700 (PDT) X-Received: by 10.182.232.166 with SMTP id tp6mr199999obc.10.1445656701131; Fri, 23 Oct 2015 20:18:21 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!c107no1231273qgd.1!news-out.google.com!z4ni34350ign.0!nntp.google.com!kq10no27554534igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 23 Oct 2015 20:18:20 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=133.38.237.189; posting-account=gDTerwoAAAAw2AMa21RCQs8ZOUFieb_X NNTP-Posting-Host: 133.38.237.189 References: <46b41ae0-ae3f-427d-a52a-8655295c5ea5@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: How to merge multiple compilation units into a compilation unit. From: Bo Wang Injection-Date: Sat, 24 Oct 2015 03:18:21 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:28040 Date: 2015-10-23T20:18:20-07:00 List-Id: Dear J-P. Rosen Thank you for giving me valuable advices. > > I want to merge multiple compilation units into a single compilation un= it, > What do you mean by this? If you have two global package specifications, > they /are/ two compilation units. Even if you put them in the same file, > they still are two compilation units. Perhaps "merge" is vague. I want to create a new compilation unit that acts= as same as the original two compilation units, so that I can use the new c= ompilation unit to replace the original two compilation units. When a targe= t program is small-scaled, I can create the new compilation unit manually, = however, for a large target program that has massive compilation units, the= manual process is impossible. Does there exist a tool that implements this= function automatically. =20 > > or generate an abstract tree file ".adt". > See the documentation on ASIS for that, or how to compile "on the fly". >=20 > Reading the source of ptree can be useful as a starting point of an ASIS > application (ptree is a small utility provided with AdaControl, much > simpler than AdaControl itself). AdaControl is great. I installed and used it. From the view of manual refer= ence of AdaControl, ptree is process compilation units one by one? Thank you very much. Sincerely, Bo Wang