comp.lang.ada
 help / color / mirror / Atom feed
From: Mark H Johnson <mark_h_johnson@raytheon.com>
Subject: Re: Ada compiler differences
Date: Thu, 21 Oct 2004 16:05:00 -0500
Date: 2004-10-21T16:05:00-05:00	[thread overview]
Message-ID: <1wVdd.5$Au6.4@dfw-service2.ext.ray.com> (raw)
In-Reply-To: <+Lb8wu$Il5Pz@eisner.encompasserve.org>

Larry Kilgallen wrote:
> In article <YDwdd.53169$JG5.650210@news20.bellglobal.com>, "Warren W. Gay VE3WWG" <ve3wwg@cogeco.ca> writes:
> 
>>Mark H Johnson wrote:
>>
>>>Larry Kilgallen wrote:
>>>
>>>>In article <WSWcd.8$V_2.4@dfw-service2.ext.ray.com>, Mark H Johnson 
>>>><mark_h_johnson@raytheon.com> writes:
>>>>
>>>>[snip big endian TCP/IP example]
>>>
>>>
>>>>>That particular issue has nothing to do with Ada; you have the same 
>>>>>problem with C or other languages.
>>>>
>>>>In particular, it has to do with the fact that TCP/IP was devised on
>>>>an ad-hoc basis rather than using an underlying marshalling technique
>>>>such as promoted by ASN.1.
>>
>>The marshalling technique required by ASN.1 requires that all hosts
>>do "marshalling", whereas big endian machines do not require it
>>at all (assuming size matches).
> 
> 
> And as someone who frequents little-endian machines, I can choose some
> non-IP protocol a more friendly (to me) one that was designed with no
> thought to endian portability.

I'll repeat my question [which was snipped in this sequence] since it 
apparently has been ignored....

I am not quite sure how this comment is relevant to the OP's question on 
writing portable software. Are you suggesting to the OP that they use 
something like an ASN.1 library instead of Posix functions? If so, how 
is that "better" for the problem I described?

I raised this question because I recognize in many situations, you have 
to meet an established interface specification. You imply above that 
ignoring the interface (or choosing a different one) is somehow OK. 
Please explain your rationale.

   --Mark




  parent reply	other threads:[~2004-10-21 21:05 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-18 12:47 Ada compiler differences Magnus
2004-10-18 14:01 ` Jacob Sparre Andersen
2004-10-18 18:31   ` Luke A. Guest
2004-10-18 19:55     ` Nick Roberts
2004-10-19 20:52       ` Luke A. Guest
2004-10-20  1:16         ` Jeffrey Carter
2004-10-18 21:03     ` Martin Dowie
2004-10-19  2:11     ` Jeffrey Carter
2004-10-18 20:36 ` Nick Roberts
2004-10-18 21:48 ` Mark H Johnson
2004-10-19 14:49   ` Larry Kilgallen
2004-10-19 20:32     ` Mark H Johnson
2004-10-20 16:48       ` Warren W. Gay VE3WWG
2004-10-21 13:54         ` Larry Kilgallen
2004-10-21 20:57           ` Warren W. Gay VE3WWG
2004-10-21 21:05           ` Mark H Johnson [this message]
2004-10-26 15:23             ` Larry Kilgallen
2004-10-26 21:21               ` Mark H Johnson
2004-10-27  4:39                 ` Larry Kilgallen
2004-10-27 13:49                   ` Mark H Johnson
2004-10-20  8:02 ` Rod Chapman
2004-10-21 13:55   ` Larry Kilgallen
2004-10-22  8:13     ` Rod Chapman
  -- strict thread matches above, loose matches on Subject: below --
2004-10-20  1:32 Stephen Leake
2004-10-20  5:47 ` Simon Wright
2004-10-26  0:28   ` Randy Brukardt
2004-10-20 13:05 Stephen Leake
2004-10-20 17:17 ` Nick Roberts
2004-10-20 19:44   ` Simon Wright
2004-10-21 21:02     ` Nick Roberts
replies disabled

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