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.46.197 with SMTP id u188mr18464017ywu.22.1441643317570; Mon, 07 Sep 2015 09:28:37 -0700 (PDT) X-Received: by 10.182.105.230 with SMTP id gp6mr82176obb.12.1441643317538; Mon, 07 Sep 2015 09:28:37 -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!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!v79no1392406qge.0!news-out.google.com!nt1ni3667igb.0!nntp.google.com!kq10no1939057igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 7 Sep 2015 09:28:37 -0700 (PDT) In-Reply-To: <56274cb4-21f3-479b-9515-1c15c8b650aa@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=24.6.21.101; posting-account=Qh2kiQoAAADpCLlhT_KTYoGO8dU3n4I6 NNTP-Posting-Host: 24.6.21.101 References: <56274cb4-21f3-479b-9515-1c15c8b650aa@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <8b8ce891-7663-40b3-ab35-d7d54e9d98d3@googlegroups.com> Subject: Re: Addressing in Object Ada v/s GNAT (2013) showing Vast Differences From: Anh Vo Injection-Date: Mon, 07 Sep 2015 16:28:37 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 2409 X-Received-Body-CRC: 188296733 Xref: news.eternal-september.org comp.lang.ada:27731 Date: 2015-09-07T09:28:37-07:00 List-Id: On Monday, September 7, 2015 at 9:02:48 AM UTC-7, Lucas Redding wrote: > On Monday, September 7, 2015 at 3:04:43 PM UTC+1, G.B. wrote: > > On 07.09.15 13:54, Lucas Redding wrote: >=20 > Yes I have included alignment of types and objects. I have not explicitly= specified the padding gaps. In object Ada, this is not necessary provided = the type specifications are explicitly size constrained and the object fits= in between its address and the next objects address. In other words if the= re is a gap between the end of one object and the beginning of the next obj= ect, the data is read correctly (if the size of the type is explicitly cons= trained).=20 >=20 > Many thanks for that pointerto the -gnatR option. Being a novice to the c= ompiler there are so many options to get to grips with. I am also using GPS= , and toggling all the tick boxes did not produce this switch. =20 When compiled with GNAT, did GNAT spit out any Warnings at all? I would sus= pect misaligned address value during run time should have warned during com= pilation. Anh Vo