From: Ole-Hjalmar Kristensen <ole-hjalmar.kristensen@substitute_employer_here.com>
Subject: Re: pragma Pack does not work on GNAT 5.01a for Redhat Linux.
Date: 29 Jun 2007 12:21:46 +0200
Date: 2007-06-29T12:21:46+02:00 [thread overview]
Message-ID: <wvbr6457t611.fsf@sun.com> (raw)
In-Reply-To: m28xacef9k.fsf@mac.com
>>>>> "SW" == Simon Wright <simon.j.wright@mac.com> writes:
SW> "Bob Spooner" <rls19@psu.edu> writes:
>> "Simon Wright" <simon.j.wright@mac.com> wrote in message
>> news:m2hcp2e4fv.fsf@mac.com...
>>>
>>> There's always a price to pay, of course; the packing isn't dense, and
>>> it can be quite a challenge to work out what bytes are actually being
>>> sent (eg, if you find yourself having to talk to C after all).
>>
>> Yes, XDR takes care of things like endianness, etc. that otherwise get in
>> the way, but as you point out, there's always a price to be paid for
>> generality. In some cases it looks like it even will take care of differing
>> floating point representations, although I wonder about out of range
>> problems when converting. Isn't there an XDR library for C? I know that
>> there is one for Fortran. I would think that as long as you have an XDR
>> library for the language with which you need to communicate, you wouldn't
>> have to decode the bytes yourself; or have I misunderstood what you are
>> saying?
C has had XDR and RPC at least since 1987. Try man xdr or man rpcgen on any unix
box.
See
[Sun Microsystems
XDR: External Data Representation Standard
Internet Network Working Group
RFC1014 Internet Request For Comments, June 1987]
--
C++: The power, elegance and simplicity of a hand grenade.
next prev parent reply other threads:[~2007-06-29 10:21 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-19 13:16 pragma Pack does not work on GNAT 5.01a for Redhat Linux petter_fryklund
2007-06-19 14:02 ` Georg Bauhaus
2007-06-19 14:15 ` petter_fryklund
2007-06-19 16:16 ` Jeffrey R. Carter
2007-06-19 16:23 ` Adam Beneschan
2007-06-20 15:51 ` Bob Spooner
2007-06-20 16:35 ` Adam Beneschan
2007-06-20 20:50 ` Simon Wright
2007-06-21 14:50 ` Bob Spooner
2007-06-22 5:20 ` Simon Wright
2007-06-29 10:21 ` Ole-Hjalmar Kristensen [this message]
2007-07-01 10:57 ` Simon Wright
2007-08-07 10:51 ` Ole-Hjalmar Kristensen
2007-08-10 20:36 ` Simon Wright
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox