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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,afb4d45672b1e262 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!news.arcor.de!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Any way of persuading GNAT/GCC to implement a true overlay and not a pointer? Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.14.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: Date: Sat, 1 Apr 2006 20:04:35 +0200 Message-ID: <7bc9b0zbh4vg$.spjrxm0azjic.dlg@40tude.net> NNTP-Posting-Date: 01 Apr 2006 20:04:30 MEST NNTP-Posting-Host: c105a0a3.newsread2.arcor-online.net X-Trace: DXC=n2@OdOjSMW_H^J66Eo??P_Q5U85hF6f;TjW\KbG]kaMXDAHcn;Zl5eXYC=HO:l:]?S[6LHn;2LCV^[ On Sat, 1 Apr 2006 17:52:46 +0100, Doobs wrote: > ">> I was under the impression that code of the following form : >>> >>> X : ; >>> Y : ; >>> for Y'Address use X'Address; >>> >>> would result in an overlay in the resulting code. > > Tried Pragma volatile - had no effect..... > > What I am seeing is that in the map file X and Y are located at different > addresses. Even though Y is a large array in my implementation, the linker > has only reserved four bytes for it. When examining the contents of Y at > run time it contains the address of X - i.e. it is a pointer to X Is it possible that the object's type is unconstrained and what you see is the array dope allocated at the address specified, rather than the array body? -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de