From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,36c197595b07e443 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder.news-service.com!cyclone02.ams2.highwinds-media.com!news.highwinds-media.com!npeersf01.ams.highwinds-media.com!newsfe03.ams2.POSTED!40385e62!not-for-mail From: Per Sandberg User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.4pre) Gecko/20091014 Fedora/3.0-2.8.b4.fc11 Thunderbird/3.0b4 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Cross-platform issues References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <0V0Tm.4561$Cb4.352@newsfe03.ams2> X-Complaints-To: abuse@WWWSpace.NET NNTP-Posting-Date: Mon, 07 Dec 2009 06:03:40 UTC Date: Mon, 07 Dec 2009 07:03:38 +0100 Xref: g2news1.google.com comp.lang.ada:8329 Date: 2009-12-07T07:03:38+01:00 List-Id: 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, >> Leslie 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: >> >> > > 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: >> >> >> > 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