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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.182.248.195 with SMTP id yo3mr17468838obc.34.1441626843293; Mon, 07 Sep 2015 04:54:03 -0700 (PDT) X-Received: by 10.182.120.168 with SMTP id ld8mr63625obb.33.1441626843271; Mon, 07 Sep 2015 04:54:03 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!peer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!kq10no1807430igb.0!news-out.google.com!f6ni3626igi.0!nntp.google.com!kq10no1347195igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 7 Sep 2015 04:54:03 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=194.138.39.55; posting-account=IcHmbgoAAABVfpbjrkJyy4Yb3hmce3tn NNTP-Posting-Host: 194.138.39.55 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Addressing in Object Ada v/s GNAT (2013) showing Vast Differences From: Lucas Redding Injection-Date: Mon, 07 Sep 2015 11:54:03 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 2495 X-Received-Body-CRC: 3285713742 Xref: news.eternal-september.org comp.lang.ada:27726 Date: 2015-09-07T04:54:03-07:00 List-Id: On Monday, September 7, 2015 at 12:39:35 PM UTC+1, Lucas Redding wrote: > Hi >=20 > I was wondering how the addressing mechanism works in GNAT Ada? Is it so = vastly different to Object Ada? Is there a way I can tailor the GNAT addres= sing mechanism to follow that of Object Ada? >=20 > I have a program that runs perfectly in Object Ada. The program relies he= avily on "USE AT" clauses together with 'SIZE on underlying type definition= . This is in order to map directly and deterministically to memory with bit= precision. The data is independently produced so this is very important. >=20 > I have compiled the program is GNAT Ada but I am getting run time errors = such as "misaligned address value". More worryingly, any data read from mem= ory that relies on the addressing mechanisms described above is incoherent. >=20 > I am interested in moving to GNAT Ada because I believe the accompanying = toolset is much richer and therefore more productive but I am beginning to = wonder whether this is too onerous task? >=20 > Any help is greatly appreciated. >=20 > Lucas Hi,=20 I forgot to say that platform is Windows 7 (64 bit if that matters) and the= data is in S_RECORD format (With correct ENDIANISM). Any help is greatly appreciated. Lucas