comp.lang.ada
 help / color / mirror / Atom feed
* Byte sex confusion
@ 1997-05-07  0:00 Steven O'Neill
  1997-05-08  0:00 ` Nick Roberts
  1997-05-09  0:00 ` Jeff Carter
  0 siblings, 2 replies; 9+ messages in thread
From: Steven O'Neill @ 1997-05-07  0:00 UTC (permalink / raw)



I have an interesting problem well known to anyone who has tried to
develop on multiple platforms.  I have binary data that was recorded on
a big-endian machine (SGI) which I am in need of reading on a
little-endian machine (Intel).  The current method involves using C
routines to fread the data into buffers and then casting the data into a
variety of Ada records.  

This is a dangerous practice (its not my code) but it works fine as long
as the layout of the records remain the same and the underlying data
formats are consistent.

What I'm looking for are ideas on how to access this data in an easy anc
consistent fashion on both architectures...  Any ideas?

Thanks,
Steve O'Neill




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~1997-05-14  0:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-05-07  0:00 Byte sex confusion Steven O'Neill
1997-05-08  0:00 ` Nick Roberts
1997-05-09  0:00   ` Robert Dewar
1997-05-14  0:00     ` Steve Sciance
1997-05-09  0:00   ` Roy Grimm
1997-05-09  0:00 ` Jeff Carter
1997-05-10  0:00   ` Robert Dewar
1997-05-11  0:00   ` Oliver Kellogg
1997-05-11  0:00   ` Matthew Heaney

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