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-Thread: 103376,5ae752c88e0dde5e X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!news.in2p3.fr!in2p3.fr!news.ecp.fr!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Using representation clauses in networking software Date: Mon, 16 Aug 2010 22:32:41 -0500 Organization: Jacob Sparre Andersen Message-ID: References: <8739ugqfeb.fsf@mid.deneb.enyo.de> <8762zbhnhy.fsf@mid.deneb.enyo.de> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1282015965 13778 69.95.181.76 (17 Aug 2010 03:32:45 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Tue, 17 Aug 2010 03:32:45 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 X-RFC2646: Format=Flowed; Original Xref: g2news1.google.com comp.lang.ada:13445 Date: 2010-08-16T22:32:41-05:00 List-Id: "Florian Weimer" wrote in message news:8762zbhnhy.fsf@mid.deneb.enyo.de... >* Simon Wright: > >> I haven't tried it but >> .. http://www.adaic.com/standards/05rm/html/RM-13-5-3.html > > This only affects the interpretation of bit positions. It does not > change the memory layout of components. When we discussed this the last time, it was concluded that supporting out of order byte reads (especially those for unusual numbers of bits) is just too expensive for implementations for the relatively small amount of use that they would get. Moreover, such things could not be volatile or atomic on most hardware (because they would require multiple reads/writes of the various pieces - the pieces wouldn't necesssarily be contiguous in memory for the non-native format), so they couldn't be used for hardware interfaces. That would eliminate half of the potential uses. Remember that read/writes of memory are probably the most fundamental thing that a compiler does; supporting split reads would require changes to virtually every part of a compiler. (For Janus/Ada, we would have to add intermediate code instructions to support such reads, with costs in everything that handles intermediate code and target code generation.) Randy.