comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <spam@spam.com>
Subject: Re: Interoperability: differing storage units and/or endianess
Date: Thu, 19 Feb 2004 17:23:29 GMT
Date: 2004-02-19T17:23:29+00:00	[thread overview]
Message-ID: <li6Zb.293$aT1.271@newsread1.news.pas.earthlink.net> (raw)
In-Reply-To: <9fb7e8e1.0402190429.49b37b16@posting.google.com>

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




  reply	other threads:[~2004-02-19 17:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-19 12:29 Interoperability: differing storage units and/or endianess Bibb Latting
2004-02-19 17:23 ` Jeffrey Carter [this message]
2004-02-20 13:52   ` Martin Dowie
2004-02-20  7:41 ` Michael Paus
2004-02-20  8:56   ` Stephen Leake
2004-02-20 10:54     ` Michael Paus
2004-02-20 13:55       ` Dmitry A. Kazakov
2004-02-20 12:43   ` Petter Fryklund
2004-02-20 20:24     ` Randy Brukardt
2004-02-21  5:34 ` Steve
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox