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!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: pragma import => pointer in mapping table ? Date: Tue, 05 Nov 2013 21:12:20 +0000 Organization: A noiseless patient Spider Message-ID: References: <2d53ec9f-1ae1-4547-ac08-6fef44ab490f@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx05.eternal-september.org; posting-host="feb3f5761668d64af19c3661aa3d3ca4"; logging-data="2043"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/MaQSahXg7Pa2hYvXdbmMmZp4AUrgCuRg=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) Cancel-Lock: sha1:LgJ2d0zI59E6XfvcgitPxS+ihxc= sha1:JKJvVED5S5ibQrHs1VQ+4KZgYNM= Xref: news.eternal-september.org comp.lang.ada:17585 Date: 2013-11-05T21:12:20+00:00 List-Id: wkernow@gmail.com writes: >> But, what in the mapping table leads you to conclude that these >> variables are treated as pointers? > > Because, experiences prove it. > In deed, I'm using an external program which reads the map file. This > program reads/writes a value of a variable. User can indicate to this > program if the variable is a pointer or not. > When user wants to read direct value, answer is an address (0x019dc345). > When user wants to read indirect value (by a poniter), answer is a value (1). > When user wantd to read direct value of 0x019dc345, answer is a value (1). This sounds to me just like what I said in the previous post. >> You could think of this as an access via a pointer at the machine code >> level, but at the Ada level this is just the same as any other variable >> access. > > I understand your argument. > > I can't access to toolchain easily. > Do you think I need to look for the linker ? Or/and see how map file > is built ? Pretty sure I haven't used a map file since 1984, so I can't answer this.