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,40c8d1d2d927ffd9 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-02-19 09:23:29 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!news.gtei.net!newsfeed1.easynews.com!easynews.com!easynews!elnk-pas-nf1!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.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: Re: Interoperability: differing storage units and/or endianess References: <9fb7e8e1.0402190429.49b37b16@posting.google.com> In-Reply-To: <9fb7e8e1.0402190429.49b37b16@posting.google.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Thu, 19 Feb 2004 17:23:29 GMT NNTP-Posting-Host: 63.184.105.42 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.news.pas.earthlink.net 1077211409 63.184.105.42 (Thu, 19 Feb 2004 09:23:29 PST) NNTP-Posting-Date: Thu, 19 Feb 2004 09:23:29 PST Xref: archiver1.google.com comp.lang.ada:5668 Date: 2004-02-19T17:23:29+00:00 List-Id: Bibb Latting wrote: > Hi, I am working on a distributed application where the processors > have differing storage unit sizes and/or endianess. My problem is how > to handle the specification of memory contents and the delivery of > data to applications with minimal variation between implementations. > I'd like to know what solutions have worked well for others. If you can use Annex E (for example, GNAT/GLADE), then this is handled for you. If you have to roll your own, you could probably use the marshalling/unmarshalling code from GLADE to achieve this. The basic idea is to pick a representation for transmission, and ensure that every box converts to this representation before transmission, and converts from this representation after reception. -- Jeff Carter "Apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, the fresh water system, and public health, what have the Romans ever done for us?" Monty Python's Life of Brian 80