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!feeder.eternal-september.org!goblin1!goblin3!goblin.stu.neva.ru!pit-in1.telstra.net!news.telstra.net!border2.nntp.dca.giganews.com!nntp.giganews.com!news-out.readnews.com!s09-01.readnews.com!not-for-mail X-Trace: DXC=?]@F2oHF2^A70aCi4[7Q@L[3OhcoN[H0@X44`8^\]>7J8DHB_I2k0T@_WOU;SDD77DXBL_fUPCl2K;bH^b Newsgroups: comp.lang.ada Subject: Re: pragma import => pointer in mapping table ? Message-ID: <20131108195225.3d9281eb@lufsen.sandat.dyndns.org> References: <2d53ec9f-1ae1-4547-ac08-6fef44ab490f@googlegroups.com> X-Newsreader: Claws Mail 3.9.0 (GTK+ 2.24.8; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 69f70fc3.ngroups.net Xref: news.eternal-september.org comp.lang.ada:17600 Date: 2013-11-08T19:52:25+01:00 List-Id: You have asked some question about some very low level details in some implementation, but may i ask what is it you want to achive by reading .map-files, wont the linker just solve your problem ?? If you got some header files that are reasonably clean what don't just: "g++ -fdump-ada-spec" and be happy ?? /Per On Tue, 5 Nov 2013 01:49:31 -0800 (PST) wkernow@gmail.com wrote: > Hello, > > This is the first time I write in a newsgroup. > > In my code, I have : > > pragma import (C, X, "varX_C"); > > with everything that I need before (pragma convention, declaration of > varX, "X_C" comes from a C file) > > Code is ok but my problem is about mapping file. Mapping table is a > file which identifies each variable by an address. This file come > from toolchain (varX 0x01891234) > > In deed, I saw that all variables X derived from a "pragma import" > are considered as pointers in mapping table whereas variables type of > varX are not access types (basic types). > > My hypothesis is that pragma import create an access to C data > "varX_C" from a exterior point of view of ada code (so by mapping > table). > > To confirm my hypothesis, 2 questions : > 1) Are you ok ? > 2) Is possible to define an option in toolchain in order to define > adressing mode (for addresses in mapping file from pragma import) in > direct mode (on ADA data) instead of indirect mode (on C data). Or is > it a default option ? > > if I'm wrong or you don't understand : > 3) In genaral, I don't understand how a basic variable (type BOOLEAN) > in ADA code can be considered as a pointer to a BOOLEAN in an mapping > file derived from toolchain ? > > Thank you