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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: How to merge multiple compilation units into a compilation unit. Date: Wed, 21 Oct 2015 09:23:28 +0200 Organization: A noiseless patient Spider Message-ID: References: <46b41ae0-ae3f-427d-a52a-8655295c5ea5@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 21 Oct 2015 07:21:24 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="45bffd6a911624777cad79aac3181090"; logging-data="24345"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/zfyuA/FR3vCJOsgPn1ZMX" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: <46b41ae0-ae3f-427d-a52a-8655295c5ea5@googlegroups.com> Cancel-Lock: sha1:c7zoQdAkGn71G4pLWNLpKvHqdNc= Xref: news.eternal-september.org comp.lang.ada:28007 Date: 2015-10-21T09:23:28+02:00 List-Id: Le 21/10/2015 09:04, Bo Wang a écrit : > I want to merge multiple compilation units into a single compilation unit, 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. Now, some compilers allow you to put several compilation units in the same file, but not Gnat. > or generate an abstract tree file ".adt". See the documentation on ASIS for that, or how to compile "on the fly". 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). -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr