comp.lang.ada
 help / color / mirror / Atom feed
From: "Warren W. Gay VE3WWG" <ve3wwg@cogeco.ca>
Subject: Re: Endianness independance
Date: Wed, 05 Mar 2003 12:28:39 -0500
Date: 2003-03-05T12:28:39-05:00	[thread overview]
Message-ID: <3E6633C7.8000503@cogeco.ca> (raw)
In-Reply-To: x7vy93urfhn.fsf@smaug.pushface.org

Simon Wright wrote:
> "David C. Hoos, Sr." <david.c.hoos.sr@ada95.com> writes:
> 
>>If all you want is platform-independence, then replace the file
>>s-stratt.adb in your standard gnat distribution with the one from
>>the same version of glade, and re-compile and rebuild the library
>>files (.a), and you have what you want.  Now, as long as your types
>>are declared the same on both platforms (with no representation
>>clauses) you will have platform- independence.
> 
> You can certainly use the 3.14 GLADE file with 3.15 (and I think
> GCC-3, too). Not a huge amount of change.
> 
> I suspect you'd be well advised to have the same release at both ends,
> even so!

If you look carefully at GLADE, you will notice that all that is
being done there is "byte swapping". There is more to independent
network formats than that (it just happens to work with _most_
modern platforms at the moment).

The problem that XDR solved was that they specified a network
independent format for floating point types. If you try to use
GLADE on hosts that use different floating point formats, then
no amount of byte swapping is going to make them compatible!

I would have preferred to see GLADE make use of the XDR facilities
that are available on any Linux/UNIX platform, and I am certain
that XDR exists in some form on any Windows platform that
supports DCOM.  XDR would give you true compatibility at the
floating point type level, in addition to the less difficult
types like integers.

Perhaps someone can take on that XDR project for the NG Glade? ;-)

-- 
Warren W. Gay VE3WWG
http://home.cogeco.ca/~ve3wwg




  reply	other threads:[~2003-03-05 17:28 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <BB06F6B19AC7D51181D10050DA725A10138C75@eoleclb.clb.tcfr.thales>
2003-03-04 12:46 ` Endianness independance David C. Hoos, Sr.
2003-03-04 16:38   ` John Harbaugh
2003-03-04 21:25   ` Simon Wright
2003-03-05 17:28     ` Warren W. Gay VE3WWG [this message]
2003-03-05 20:15       ` Simon Wright
2003-03-05 21:54         ` Warren W. Gay VE3WWG
2003-03-05 17:49 David C. Hoos
2003-03-05 20:16 ` Simon Wright
2003-03-05 21:58   ` Warren W. Gay VE3WWG
  -- strict thread matches above, loose matches on Subject: below --
2003-03-04 11:34 Lionel.DRAGHI
     [not found] <BB06F6B19AC7D51181D10050DA725A10138C71@eoleclb.clb.tcfr.thales>
2003-03-03 18:38 ` David C. Hoos
2003-03-03 17:52 Lionel.DRAGHI
2003-03-03 20:29 ` Pascal Obry
2003-03-03 13:33 Lionel.DRAGHI
2003-03-03 16:11 ` Stephen Leake
2003-02-28 17:21 Lionel.DRAGHI
2003-02-28 20:37 ` Randy Brukardt
2003-02-28 15:11 Lionel.DRAGHI
2003-02-28 16:10 ` Stephen Leake
2003-02-28 18:26 ` Marin David Condic
2003-03-01 10:48   ` Amir Yantimirov
2003-03-01 12:00     ` Simon Wright
2003-03-01 12:53       ` Jeffrey Creem
2003-03-01 17:26         ` Simon Wright
2003-03-01 12:47     ` Marin David Condic
2003-03-02  9:49       ` Amir Yantimirov
2003-03-03 13:29         ` Marin David Condic
2003-03-03 16:05       ` Stephen Leake
2003-03-03 17:50         ` Marin David Condic
2003-03-04  2:33         ` Jeffrey Carter
2003-03-04 17:50           ` Stephen Leake
2003-03-05  2:15             ` Jeffrey Carter
2003-03-05 17:37               ` Stephen Leake
replies disabled

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