From: awdorrin <awdorrin@gmail.com>
Subject: Re: misaligned actual cannot be passed by reference
Date: Tue, 6 Dec 2011 13:53:54 -0800 (PST)
Date: 2011-12-06T13:53:54-08:00 [thread overview]
Message-ID: <68a47a08-d0b0-4508-b9bc-b1027d5d9cb1@d17g2000yql.googlegroups.com> (raw)
In-Reply-To: 625d37e2-4b4b-44a8-bafb-48555713802f@d17g2000yql.googlegroups.com
I spent a long time today stepping through the debugger and looking at
the address locations of the record elements in both Ada and the
corresponding C Structure.
It looks like the rep spec that GNAT generated was not aligning some
of the values the way it wanted to. I was able to manually adjust the
rep spec (and the C struct) - and now GNAT is happy with the results.
Not sure why GNAT didn't align the items properly to begin with...
next prev parent reply other threads:[~2011-12-06 21:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-06 14:14 misaligned actual cannot be passed by reference awdorrin
2011-12-06 21:53 ` awdorrin [this message]
2011-12-07 14:47 ` Robert Matthews
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox