comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon.j.wright@mac.com>
Subject: Re: pragma Pack does not work on GNAT 5.01a for Redhat Linux.
Date: Sun, 01 Jul 2007 11:57:10 +0100
Date: 2007-07-01T11:57:10+01:00	[thread overview]
Message-ID: <m24pkobddl.fsf@mac.com> (raw)
In-Reply-To: wvbr6457t611.fsf@sun.com

Ole-Hjalmar Kristensen <ole-hjalmar.kristensen@substitute_employer_here.com> writes:

>>>>>> "SW" == Simon Wright <simon.j.wright@mac.com> writes:

You seem to have snipped the last bit that I actually did say ..

>     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.

True but not helpful if one side of the interface is implemented in
Ada and the other side uses just C and sockets (and you are on the Ada
side with no influence on the protocol). VxWorks both sides would
probably add to the fun.

I realise I didn't note these extra influences in my original remarks ..



  reply	other threads:[~2007-07-01 10:57 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
2007-07-01 10:57           ` Simon Wright [this message]
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