comp.lang.ada
 help / color / mirror / Atom feed
From: "Pat Rogers" <progers@classwide.com>
Subject: Re: Help with Copying Shared Memory to Local
Date: Fri, 24 May 2002 19:49:26 GMT
Date: 2002-05-24T19:49:26+00:00	[thread overview]
Message-ID: <aPwH8.15921$1U4.2841103386@newssvr30.news.prodigy.com> (raw)
In-Reply-To: EE1B58C60CD7D9ED.3DE0D594451AD094.92104DC9322C357A@lp.airnews.net

"John R. Strohm" <strohm@airmail.net> wrote in message
news:EE1B58C60CD7D9ED.3DE0D594451AD094.92104DC9322C357A@lp.airnews.net...
> type x is record
>     csr: byte;
>     dr: byte;
> end record;
> for x use record at mod 2;
> for x'size use 16;

The other poster is right -- there's nothing to say that the above causes the
compiler to generate 16-bit accesses.  When you need that kind of control, you
are better off writing the machine-code insert to do it explicitly, rather than
trying to coerce the compiler to do it the way you want.  Sure, you can often
get your compiler to do what you want, until the next release!


--
Patrick Rogers                       Consulting and Training in:
http://www.classwide.com          Real-Time/OO Languages
progers@classwide.com               Hard Deadline Schedulability Analysis
(281)648-3165                                 Software Fault Tolerance





  reply	other threads:[~2002-05-24 19:49 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-23 13:50 Help with Copying Shared Memory to Local John Cupak
2002-05-23 20:32 ` Jeffrey Carter
2002-05-23 21:18   ` John Cupak
2002-05-24  1:37     ` Randy Brukardt
2002-05-24  2:08       ` Jeffrey Carter
2002-05-24 17:05         ` John R. Strohm
2002-05-24 16:55           ` Stephen Leake
2002-05-24 20:43             ` John R. Strohm
2002-05-24 19:49               ` Pat Rogers [this message]
2002-05-24 23:23                 ` martin.m.dowie
2002-05-24 20:54               ` Stephen Leake
2002-05-24 19:41           ` Jeffrey Carter
2002-05-26  0:55           ` John Cupak
2002-05-28 17:52             ` John Cupak
2002-05-25 11:23   ` Robert Dewar
2002-05-26  4:48     ` Jeffrey Carter
  -- strict thread matches above, loose matches on Subject: below --
2002-05-24 14:22 Beard, Frank [Contractor]
2002-05-24 19:30 ` Jeffrey Carter
replies disabled

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