comp.lang.ada
 help / color / mirror / Atom feed
From: Per Sandberg <per.sandberg@bredband.net>
Subject: Re: Cross-platform issues
Date: Mon, 07 Dec 2009 07:03:38 +0100
Date: 2009-12-07T07:03:38+01:00	[thread overview]
Message-ID: <0V0Tm.4561$Cb4.352@newsfe03.ams2> (raw)
In-Reply-To: <hfhf9l$2gh$1@news.albasani.net>

Two good titles
John Barnes: Programming in Ada 2005
Alan Burns & Andy Wellings: Concurrent and Real-Time Programming in Ada
/Per


2009-12-07 00:39, Leslie skrev:
> John B. Matthews wrote:
>
>> In article<hfeive$315$1@news.albasani.net>,
>>   Leslie<jlturriff@centurytel.net>  wrote:
>>
>>> I'm working on an application that I would like to be capable
>>> of communicating between hosts, and I wonder how the issue of
>>> 32-bit vs. 64-bit, and perhaps endianness should best be
>>> handled?
>>
>> I'm guessing that would depend on how much and what kind of
>> data, as well as a given compiler's support for representation.
>> Here's an example of one vendor's documentation of this:
>>
>>
> <http://gcc.gnu.org/onlinedocs/gcc-4.3.4/gnat_rm/Representation-Clauses-a
>> nd-Pragmas.html#Representation-Clauses-and-Pragmas>
>>
>> Another approach is to avoid such problems altogether by using
>> Ada Web Server (AWS) and defining all communication atop HTTP:
>>
>> <http://libre.adacore.com/libre/tools/aws/>
>>
>          What I'm working on is a product that I want to conform as
> closely as possible to the one that inspired it.  The original
> emits trace data with things like field length info in 4-byte
> integers, for example. I suppose that using a derived type to
> ensure that in my implementation those fields conform with the
> original is one way to do it, but is that accepted practice, or
> is there a more usual one?
>
>          BTW, I'm just getting into Ada, and the only books I have for
> reference were from the early 90s, so at this point my ideas on
> how to proceed are a bit vague. :-)
>
> Leslie



  reply	other threads:[~2009-12-07  6:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-05 21:23 Cross-platform issues Leslie
2009-12-06 17:13 ` John B. Matthews
2009-12-06 23:39   ` Leslie
2009-12-07  6:03     ` Per Sandberg [this message]
2009-12-07 21:05     ` sjw
2009-12-08  0:33     ` Randy Brukardt
2009-12-08  0:33     ` tmoran
2009-12-08  9:02       ` Martin
2009-12-08 19:46 ` Leslie
replies disabled

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