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.107.151.206 with SMTP id z197mr24382929iod.32.1441725110790; Tue, 08 Sep 2015 08:11:50 -0700 (PDT) X-Received: by 10.182.199.37 with SMTP id jh5mr107095obc.6.1441725110772; Tue, 08 Sep 2015 08:11:50 -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!kq10no1824616igb.0!news-out.google.com!nt1ni4509igb.0!nntp.google.com!kq10no1824614igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 8 Sep 2015 08:11:50 -0700 (PDT) In-Reply-To: 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> <8b8ce891-7663-40b3-ab35-d7d54e9d98d3@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <843e0975-e92d-49b0-8cf4-ba19cdb12300@googlegroups.com> Subject: Re: Addressing in Object Ada v/s GNAT (2013) showing Vast Differences From: Anh Vo Injection-Date: Tue, 08 Sep 2015 15:11:50 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:27744 Date: 2015-09-08T08:11:50-07:00 List-Id: On Tuesday, September 8, 2015 at 12:30:57 AM UTC-7, Lucas Redding wrote: > On Monday, September 7, 2015 at 5:28:39 PM UTC+1, Anh Vo wrote: > > 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 explic= itly specified the padding gaps. In object Ada, this is not necessary provi= ded the type specifications are explicitly size constrained and the object = fits in between its address and the next objects address. In other words if= there is a gap between the end of one object and the beginning of the next= object, the data is read correctly (if the size of the type is explicitly = constrained).=20 > > >=20 > > > Many thanks for that pointerto the -gnatR option. Being a novice to t= he compiler 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= suspect misaligned address value during run time should have warned during= compilation. > >=20 > > Anh Vo >=20 > Indeed Anh Vo >=20 > That would have been very useful. Unfortunately warnings are not being is= sued during the compilation stages. >=20 > I shall check the level of warnings in the compiler options just in case = I have missed something. Any pointers greatly appreciated. I would suggest to look at difference address alignment between the two whe= re OA may patch it by default while GNAT does not. The worst case is that y= ou need to post part of the codes. So, we can test it if needed. AV