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 12:50:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.ems.psu.edu!news.cis.ohio-state.edu!news.maxwell.syr.edu!nntp.flash.net!newscon02.news.prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr30.news.prodigy.com.POSTED!not-for-mail From: "Pat Rogers" Newsgroups: comp.lang.ada References: <3CED51CF.39E26FC6@acm.org> <3CEDA095.61BE6EF6@acm.org> <478AE9B914ED6844.5DEC7C5E64D6473E.909AD32BDF37CFA7@lp.airnews.net> Subject: Re: Help with Copying Shared Memory to Local X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: NNTP-Posting-Host: 208.191.177.131 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr30.news.prodigy.com 1022269766 ST000 208.191.177.131 (Fri, 24 May 2002 15:49:26 EDT) NNTP-Posting-Date: Fri, 24 May 2002 15:49:26 EDT Organization: Prodigy Internet http://www.prodigy.com X-UserInfo1: OP]QRACE[BWMQ_H]]ZN@_TDAYZOZ@GXOXR]ZMVMHQAVTUZ]CLNTCPFK[WDXDHV[K^FCGJCJLPF_D_NCC@FUG^Q\DINVAXSLIFXYJSSCCALP@PB@\OS@BITWAH\CQZKJMMD^SJA^NXA\GVLSRBD^M_NW_F[YLVTWIGAXAQBOATKBBQRXECDFDMQ\DZFUE@\JM Date: Fri, 24 May 2002 19:49:26 GMT Xref: archiver1.google.com comp.lang.ada:24679 Date: 2002-05-24T19:49:26+00:00 List-Id: "John R. Strohm" 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