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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2aaba1527862ef22 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!news-in.ntli.net!newsrout1-win.ntli.net!ntli.net!news.highwinds-media.com!xara.net!gxn.net!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Reading Float Data from a binary file into ada Date: Sat, 03 Feb 2007 17:01:26 +0000 Organization: Pushface Message-ID: References: <1170172307.292500.256090@m58g2000cwm.googlegroups.com> <45bf9b8b$0$22527$39db0f71@news.song.fi> <45c25ddf$0$22513$39db0f71@news.song.fi> <45c4a332$1_1@news.bluewin.ch> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1170522085 25096 62.49.19.209 (3 Feb 2007 17:01:25 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sat, 3 Feb 2007 17:01:25 +0000 (UTC) Cancel-Lock: sha1:OcZmyH3YyfknLsxgNEmHdS7oc4Q= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) Xref: g2news2.google.com comp.lang.ada:8881 Date: 2007-02-03T17:01:26+00:00 List-Id: Gautier writes: > It seems complicated, depends on GNAT and furthermore needs > modifying its RTL. What about a deterministic way where data is > sliced into bytes in the Ada code ? > You can take a look at GLOBE_3D-IO.adb in GLOBE_3D ( > http://www.mysunrise.ch/users/gdm/g3d.htm ), it's working fine: a > .g3d object can be written on a PowerPC machine with a GLOBE_3D > engine compiled by GNAT, then read on a PC with a GLOBE_3D compiled > by ObjectAda (succesfully tested). A single source, no tweak, no > compiler dependence... But doing it the way I described means that I can use My_Arbitrary_Nonlimited_Type'Output and 'Input (or even Your_Arbitrary_Nonlimited_Type'Output and 'Input) without further ado. Worth some low-level compiler RTL messing. I'm sure that if we had to migrate to OA we could pay Aonix to provide such an RTL (of course they may provide it already for all I know).