From: Bo Wang <wangbosky@gmail.com>
Subject: Re: How to merge multiple compilation units into a compilation unit.
Date: Fri, 23 Oct 2015 20:18:20 -0700 (PDT)
Date: 2015-10-23T20:18:20-07:00 [thread overview]
Message-ID: <ceeffcce-f687-4aff-9e42-03a740986ec0@googlegroups.com> (raw)
In-Reply-To: <n07edk$nop$1@dont-email.me>
Dear J-P. Rosen
Thank you for giving me valuable advices.
> > 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.
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 compilation unit to replace the original two compilation units. When a target 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.
> > 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).
AdaControl is great. I installed and used it. From the view of manual reference of AdaControl, ptree is process compilation units one by one?
Thank you very much.
Sincerely,
Bo Wang
next prev parent reply other threads:[~2015-10-24 3:18 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
2015-10-24 3:18 ` Bo Wang [this message]
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