comp.lang.ada
 help / color / mirror / Atom feed
From: Steven O'Neill <oneills@top.monad.net>
Subject: Byte sex confusion
Date: 1997/05/07
Date: 1997-05-07T00:00:00+00:00	[thread overview]
Message-ID: <33716475.43A9@top.monad.net> (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




             reply	other threads:[~1997-05-07  0:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-05-07  0:00 Steven O'Neill [this message]
1997-05-08  0:00 ` Byte sex confusion Nick Roberts
1997-05-09  0:00   ` Roy Grimm
1997-05-09  0:00   ` Robert Dewar
1997-05-14  0:00     ` Steve Sciance
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
replies disabled

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