comp.lang.ada
 help / color / mirror / Atom feed
From: "J-P. Rosen" <rosen@adalog.fr>
Subject: Re: How to merge multiple compilation units into a compilation unit.
Date: Wed, 21 Oct 2015 09:23:28 +0200
Date: 2015-10-21T09:23:28+02:00	[thread overview]
Message-ID: <n07edk$nop$1@dont-email.me> (raw)
In-Reply-To: <46b41ae0-ae3f-427d-a52a-8655295c5ea5@googlegroups.com>

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

  reply	other threads:[~2015-10-21  7:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-21  7:04 How to merge multiple compilation units into a compilation unit Bo Wang
2015-10-21  7:23 ` J-P. Rosen [this message]
2015-10-24  3:18   ` Bo Wang
2015-10-24 13:19     ` Jacob Sparre Andersen
2015-10-24 21:09     ` J-P. Rosen
2015-10-25  6:34     ` Stephen Leake
replies disabled

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