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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,11acceb38e90ed0a X-Google-Attributes: gid103376,public From: Andy Subject: Re: Sequential_IO Data Portability Date: 2000/02/01 Message-ID: <3896E408.7790@nospam.com.tj>#1/1 X-Deja-AN: 580320550 Cache-Post-Path: news.ozonline.com.au!unknown@melb-pool-236.ozonline.com.au Content-Transfer-Encoding: 7bit References: <38903e96@eeyore.callnetuk.com> <3895E8B2.AD802742@SpamJam.gecm.com> Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@connect.com.au X-Trace: perki.connect.com.au 949409236 263 203.4.248.42 (1 Feb 2000 12:47:16 GMT) Organization: Australia On Line Pty Ltd Mime-Version: 1.0 Reply-To: andy@nospam.com.tj NNTP-Posting-Date: 1 Feb 2000 12:47:16 GMT Newsgroups: comp.lang.ada Date: 2000-02-01T12:47:16+00:00 List-Id: > Nick Roberts wrote: > Being able to use another compiler (ie GNAT95) in the same manner without having to expend vast amounts > of effort on translating or rep spec'ing file formats (which would be tedious and error prone) means we > could concentrate our resources on system improvements. > > So that's the background. If anyone has any practical experience (positive or negative) of sharing binary > files between Linux, LynxOs, SCO and/or Windows NT using GNAT95 I would be delighted to hear from you. > The project I work on does not share files, but we do share binary data (via messages) between a number of DEC Alpha platforms (using Rational Apex) and VME 68k platforms (using a Greenhills compiler). In the end we deceided to bite the bullet and rep spec all the messages (and closure of the all the types used in these messages). To this end we have developed a tool (written in shell scripts & Perl) to auto generate the rep specs. The rep specs are such that they are evaluated at compile time. Thus if a low level type changes, say from scalar to a physically larger/smaller scalar, or to a composite type, then the rep specs of the types dependent upon this type are automatically adjusted at compile time (by both compilers). While I cannot provide the scripts or the Perl (they are designed to work within an Apex environment anyway) I could provide more info on the compile time arithmetic we perform in order to generate the rep specs if required. (we also have to perform endian conversions, but that's another story). ___________________________________________ Andy Starritt ___________________________________________