comp.lang.ada
 help / color / mirror / Atom feed
From: Anh Vo <anhvofrcaus@gmail.com>
Subject: Re: Addressing in Object Ada v/s GNAT (2013) showing Vast Differences
Date: Mon, 7 Sep 2015 09:28:37 -0700 (PDT)
Date: 2015-09-07T09:28:37-07:00	[thread overview]
Message-ID: <8b8ce891-7663-40b3-ab35-d7d54e9d98d3@googlegroups.com> (raw)
In-Reply-To: <56274cb4-21f3-479b-9515-1c15c8b650aa@googlegroups.com>

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:
> 
> 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 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). 
> 
> Many thanks for that pointerto the -gnatR option. Being a novice to the 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.
 
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.

Anh Vo


  reply	other threads:[~2015-09-07 16:28 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-07 11:39 Addressing in Object Ada v/s GNAT (2013) showing Vast Differences Lucas Redding
2015-09-07 11:54 ` Lucas Redding
2015-09-07 14:04   ` G.B.
2015-09-07 16:02     ` Lucas Redding
2015-09-07 16:28       ` Anh Vo [this message]
2015-09-08  7:30         ` Lucas Redding
2015-09-08 15:11           ` Anh Vo
2015-09-08 17:20           ` Jeffrey R. Carter
2015-09-07 17:20   ` Pascal Obry
2015-09-07 17:21   ` Pascal Obry
2015-09-08  7:04     ` Lucas Redding
2015-09-07 21:02   ` Niklas Holsti
2015-09-08  8:00     ` Lucas Redding
2015-09-07 15:48 ` Jeffrey R. Carter
2015-09-08  7:27   ` Lucas Redding
2015-09-08  7:12 ` Markus Schöpflin
2015-09-08  8:05   ` Lucas Redding
2015-09-10 10:47 ` Lucas Redding
2015-09-10 12:34   ` G.B.
2015-09-21 11:12     ` Lucas Redding
2015-09-21 11:57       ` Jacob Sparre Andersen
2015-09-21 13:22         ` Lucas Redding
2015-09-21 13:47           ` Jacob Sparre Andersen
2015-09-21 13:52           ` Georg Bauhaus
2015-09-21 15:54             ` Lucas Redding
2015-09-22 17:49               ` Jacob Sparre Andersen
2015-09-22 18:45               ` Jacob Sparre Andersen
2015-10-01  6:50                 ` Lucas Redding
2015-09-21 16:48       ` Dmitry A. Kazakov
2015-10-01  7:25         ` Lucas Redding
2015-10-01 20:04           ` Randy Brukardt
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox