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: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Q: setting an address with pure? Date: Fri, 10 Jul 2015 15:38:56 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="c762050aff3a30866fa7e79999b14776"; logging-data="21113"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/sWWl6ciHFf6HZsRRRYTX/7qjKtlNikjE=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:WZiFgBWEsKkY9VH3LBA4X+AJ5ms= sha1:jRoU/WwzX6z3RKBTUCH/vbTD1w0= Xref: news.eternal-september.org comp.lang.ada:26740 Date: 2015-07-10T15:38:56+01:00 List-Id: "G.B." writes: > On 10.07.15 13:48, Simon Wright wrote: >> I need to specify the address at which a hardware object appears. >> >> This works: >> >> PIOA : PIO >> with >> Import, >> Convention => Ada, >> Address => System.Storage_Elements.To_Address (16#400E0E00#); >> >> but means that I can't declare the package Pure (or even Preelaborate). >> >> Is anyone aware of any GNAT feature that would allow such a package to >> be Pure? > > I know this isn't an answer, but still, do you need PIOA'Address fixed > at compile time? Elsewhere? Could some tool that works after > compilation take care of placement? The way that Maciej did this was to fix PIOB in the linker script. Personally I prefer to do it in Ada, that's all.