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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ccbe747051ad7991,start X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!d1g2000hsg.googlegroups.com!not-for-mail From: "jason.height@gmail.com" Newsgroups: comp.lang.ada Subject: Telesoft Unchecked_Conversion Date: Tue, 6 May 2008 18:10:39 -0700 (PDT) Organization: http://groups.google.com Message-ID: <0e4e0940-3495-40fb-bd9f-0c05e7a67f9e@d1g2000hsg.googlegroups.com> NNTP-Posting-Host: 203.166.87.218 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1210122639 882 127.0.0.1 (7 May 2008 01:10:39 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 7 May 2008 01:10:39 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d1g2000hsg.googlegroups.com; posting-host=203.166.87.218; posting-account=mYLNogoAAABi0lamnh4VPzcku2F8v5xa User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b5) Gecko/2008032620 Firefox/3.0b5,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:5730 Date: 2008-05-06T18:10:39-07:00 List-Id: Ok, here goes. I doubt that anyone can help me out here, but i am going to ask anyhow (this is my last minute hail mary pass) I am looking at a porting exercise moving from v1a of the Telesoft SunOS e68k cross compiler moving to GNAT. Things look ok EXCEPT with the messages that are sent over the LAN. I was hoping that the ported application could be written such that it could communicate with the older software. Unfortunately the LAN messages are binary records which have been converted to byte arrays using Telesofts implementation of Unchecked_Conversion. A few of these have representation clauses which i have therefore been able to mimic in my own procedures. Some of these do not have any representation clause, leaving it up to the compiler to define the layout. Which it seems to do in some non- sensical way! Here is my hail mary: Does anyone have access to the algorithm that the Telesoft compiler used to layout its records in memory when using Unchecked_Conversion? My thinking is that it would be easier to implement the algorithm, rather than reverse engineering each record. Jason