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!feeder.eternal-september.org!news.glorb.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: How to merge multiple compilation units into a compilation unit. References: <46b41ae0-ae3f-427d-a52a-8655295c5ea5@googlegroups.com> Date: Sun, 25 Oct 2015 01:34:31 -0500 Message-ID: <86y4ere9s8.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (windows-nt) Cancel-Lock: sha1:yJ+/thGWBxUC+9vvTTRBwYaqFCE= MIME-Version: 1.0 Content-Type: text/plain X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: 2a219562c77fae97f808431740 X-Received-Bytes: 1981 X-Received-Body-CRC: 3225366755 Xref: news.eternal-september.org comp.lang.ada:28045 Date: 2015-10-25T01:34:31-05:00 List-Id: Bo Wang writes: > 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. Are you talking about source code refactoring? Or about loading more than one compilation unit into an ASIS environment? Or something else? > 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. If the transformation is literally "impossible" to do manually, then it is also impossible to do automatically; perhaps you meant "impractical"? You'll have to give an example of what you are talking about to be clear. -- -- Stephe