comp.lang.ada
 help / color / mirror / Atom feed
From: Adam Beneschan <adam@irvine.com>
Subject: Re: Memory Access
Date: Mon, 7 Nov 2011 14:53:15 -0800 (PST)
Date: 2011-11-07T14:53:15-08:00	[thread overview]
Message-ID: <4eedb401-d6b4-4b3e-bd2c-584ff3ab2e86@x28g2000prb.googlegroups.com> (raw)
In-Reply-To: 9hr483F3liU1@mid.individual.net

On Nov 7, 2:26 pm, Niklas Holsti <niklas.hol...@tidorum.invalid>
wrote:
>
> While waiting for the answers: I hope you are already using pragma
> Convention to tell the Ada compiler to lay out the Ada record types and
> array types following the C conventions.

Or using record representation clauses and other attributes such as
'Component_Size to specify all that.  If the Dev_ in the names means
that the types involved are related to some kind of memory-mapped
devices, then the layouts of the record and array types are defined by
the hardware and not by the C language or C compiler, so using
Convention(C) on such types seems like the wrong approach.

                         -- Adam




      reply	other threads:[~2011-11-07 22:55 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-07 20:09 Memory Access awdorrin
2011-11-07 21:26 ` Simon Wright
2011-11-07 22:03 ` anon
2011-11-07 22:21 ` Adam Beneschan
2011-11-07 22:42   ` Adam Beneschan
2011-11-07 23:13   ` Simon Wright
2011-11-07 23:32     ` Adam Beneschan
2011-11-08 12:22       ` awdorrin
2011-11-08 16:00         ` Adam Beneschan
2011-11-08 17:46           ` awdorrin
2011-11-08 20:11             ` Adam Beneschan
2011-11-08 20:24               ` awdorrin
2011-11-09 14:42                 ` awdorrin
2011-11-08 16:10         ` awdorrin
2011-11-08 18:33           ` Simon Wright
2011-11-08 18:34             ` Simon Wright
2011-11-08 20:18             ` awdorrin
2011-11-08 12:44       ` Simon Wright
2011-11-07 22:26 ` Niklas Holsti
2011-11-07 22:53   ` Adam Beneschan [this message]
replies disabled

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