comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon.j.wright@mac.com>
Subject: Re: Reading Float Data from a binary file into ada
Date: Sat, 03 Feb 2007 12:13:15 +0000
Date: 2007-02-03T12:13:15+00:00	[thread overview]
Message-ID: <m28xff4exw.fsf@grendel.local> (raw)
In-Reply-To: 45c25ddf$0$22513$39db0f71@news.song.fi

Niklas Holsti <niklas.holsti@nospam.please> writes:

> I think the best method is to use Streams, but that takes some study
> to get started.

And endianness-handling isn't easy and (on GNAT) isn't on by default.

You can build your own GNAT RTL with XDR support on streaming by
replacing s-stratt.adb with the supplied s-strxdr.adb -- and then
streams Just Work across platforms. Well, all the platforms I'm
interested in.

We need to stream betweem PowerPC and x86, and would much prefer to
work with AdaCore's supplied RTL than one we rebuilt ourselves, so we
shall be using the standard RTL on the deliverable PPC target and a
modified one on the Intel host (we can't use AdaCore's, because it
streams one data type (Wide_Character???) in 4 bytes where the native
code streams in 2).



  reply	other threads:[~2007-02-03 12:13 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-30 15:51 Reading Float Data from a binary file into ada frikk
2007-01-30 16:37 ` Dmitry A. Kazakov
2007-01-30 16:55 ` Jean-Pierre Rosen
2007-01-30 17:35   ` Ali Bendriss
2007-02-01 16:28   ` Ali Bendriss
2007-02-01 17:27     ` Jean-Pierre Rosen
2007-01-30 17:56 ` Jeffrey R. Carter
2007-01-30 18:04   ` frikk
2007-01-30 19:56     ` frikk
2007-01-31 18:30       ` Jeffrey R. Carter
2007-01-30 20:51     ` Robert A Duff
2007-01-31 18:25     ` Jeffrey R. Carter
2007-01-31 18:57       ` frikk
2007-01-30 19:31 ` Niklas Holsti
2007-01-30 21:14   ` Cesar Rabak
2007-01-30 21:36     ` frikk
2007-02-01 21:11   ` Simon Wright
2007-02-01 21:44     ` Niklas Holsti
2007-02-03 12:13       ` Simon Wright [this message]
2007-02-03 14:59         ` Gautier
2007-02-03 17:01           ` Simon Wright
2007-01-30 20:02 ` Martin Dowie
2007-01-30 20:09   ` frikk
2007-01-30 20:23     ` Martin Dowie
2007-01-31  3:54 ` Steve
2007-01-31  8:42   ` Maciej Sobczak
2007-01-31 14:12   ` frikk
2007-01-31 18:38     ` frikk
2007-02-01  0:05       ` Jeffrey R. Carter
2007-02-01  2:59       ` Steve
2007-02-01 16:05         ` Bob Spooner
replies disabled

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