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,38159b1b5557a2e7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-01-26 11:20:56 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!elnk-pas-nf1!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread2.news.pas.earthlink.net.POSTED!a6202946!not-for-mail From: Jeffrey Carter Organization: jrcarter commercial-at acm [period | full stop] org User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Endian-Independent Rep Clauses (was: Standard Ada Preprocessor) References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Mon, 26 Jan 2004 19:20:55 GMT NNTP-Posting-Host: 63.184.16.9 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.news.pas.earthlink.net 1075144855 63.184.16.9 (Mon, 26 Jan 2004 11:20:55 PST) NNTP-Posting-Date: Mon, 26 Jan 2004 11:20:55 PST Xref: archiver1.google.com comp.lang.ada:4831 Date: 2004-01-26T19:20:55+00:00 List-Id: Robert I. Eachus wrote: > Lionel.DRAGHI@fr.thalesgroup.com wrote: > >> Could be : >> >> - Endian-Safe Record Representation Clauses for Ada programs >> Mike Mardis, Ada Letters, December 99. >> >> or - Endian-Independent Record Representation Clauses >> Norman H, Cohen, Ada Letters Jan/Feb 94 > > > Thanks! It happened to be Norm's paper that I remembered. But I guess > it must be time to publish such a paper again. ;-) > > Actually, I assume that Mike's paper is an update based on Ada 95, and > that if there are any changes in this area in Ada 0Y, that a new paper > will be needed. > IIRC, it addresses the fact that Default_Bit_Order is static, thanks to an AI, and uses static universal math based on Boolean'Pos (Default_Bit_Order = ) to calculate bit positions. I've done this kind of thing; it requires long expressions for bit numbers, but works fine. -- Jeff Carter "I'm a lumberjack and I'm OK." Monty Python's Flying Circus 54