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!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Inspirels Ada on cortex tutorial linker issue Date: Wed, 31 Aug 2016 11:15:03 +0100 Organization: A noiseless patient Spider Message-ID: References: <2efe4d01-4cd4-4aea-bc54-98ea5f26ec8a@googlegroups.com> <2cf07aa6-9cbb-44bc-8042-601c57c85457@googlegroups.com> <328fa4a3-6215-4101-835a-7eaf7ed72a8c@googlegroups.com> <1d62cc93-324a-4c87-b9d3-67c24cb54c5f@googlegroups.com> <114c0223-e914-4a5c-b533-d1b924895181@googlegroups.com> <2s6csbhbf2bji985hk890peir43q65apv0@4ax.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="90a7515de723fda2443060f3e878f4b0"; logging-data="2875"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+cyaqYSHQNgXNgtopdxgkreGU7zFeDIL8=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:n88pWSGxJlbBeMuYqE8ay8D5nyM= sha1:/Siv0wBNR4adkPJZPVtXb224Xf8= Xref: news.eternal-september.org comp.lang.ada:31654 Date: 2016-08-31T11:15:03+01:00 List-Id: Dennis Lee Bieber writes: > As a side-effect, it requires that files containing multiple > units be split (gnatchop) so that the unit names become entities in > the filesystem. cf: 4.A.3; this then permits gnatmake and the > compiler to locate units when referenced (with'ed). For a system to > fit the APSE requirements yet allow multiple units within a file > requires some other meta-data to be maintained somehow so that the > tools of the APSE can find the correct file given just the entity > name. You can use gprname[1] to generate this metadata (which says e.g. "package body P is the second unit in file files.ada"). [1] http://docs.adacore.com/gprbuild-docs/html/gprbuild_ug/companion_tools.html#specifying-a-naming-scheme-with-gprname