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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,98e311935a219163 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-24 10:03:59 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Help with Copying Shared Memory to Local Date: 24 May 2002 12:55:44 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: <3CED51CF.39E26FC6@acm.org> <3CEDA095.61BE6EF6@acm.org> <478AE9B914ED6844.5DEC7C5E64D6473E.909AD32BDF37CFA7@lp.airnews.net> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1022259758 7245 128.183.220.71 (24 May 2002 17:02:38 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 24 May 2002 17:02:38 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:24657 Date: 2002-05-24T17:02:38+00:00 List-Id: "John R. Strohm" writes: > Ada representation specifications provide a clean way to > tell the compiler what kind of access to use, This is _not_ what rep spec say. They say how to lay out the bits in memory, not how to access them. > and most compilers were good about following the programmer's > wishes. Some compilers do "what you want", but there is _no_ guarrantee in the language for this. If you need a 16 bit access, use assembly code. Wrap it up in a low-level Ada subprogram, to make it easy to use. Yes, it feels inefficient and inelegant, but it is the best approach. -- -- Stephe