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.129.84.196 with SMTP id i187mr18507625ywb.57.1441625974179; Mon, 07 Sep 2015 04:39:34 -0700 (PDT) X-Received: by 10.182.112.234 with SMTP id it10mr72583obb.13.1441625974148; Mon, 07 Sep 2015 04:39:34 -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!z77no1332570qge.1!news-out.google.com!nt1ni3472igb.0!nntp.google.com!kq10no1802100igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 7 Sep 2015 04:39:33 -0700 (PDT) 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 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Addressing in Object Ada v/s GNAT (2013) showing Vast Differences From: Lucas Redding Injection-Date: Mon, 07 Sep 2015 11:39:34 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:27724 Date: 2015-09-07T04:39:33-07:00 List-Id: Hi I was wondering how the addressing mechanism works in GNAT Ada? Is it so va= stly different to Object Ada? Is there a way I can tailor the GNAT addressi= ng mechanism to follow that of Object Ada? I have a program that runs perfectly in Object Ada. The program relies heav= ily on "USE AT" clauses together with 'SIZE on underlying type definition. = This is in order to map directly and deterministically to memory with bit p= recision. The data is independently produced so this is very important. I have compiled the program is GNAT Ada but I am getting run time errors su= ch as "misaligned address value". More worryingly, any data read from memor= y that relies on the addressing mechanisms described above is incoherent. I am interested in moving to GNAT Ada because I believe the accompanying to= olset is much richer and therefore more productive but I am beginning to wo= nder whether this is too onerous task? Any help is greatly appreciated. Lucas