comp.lang.ada
 help / color / mirror / Atom feed
From: netcomsv!mork!loren@decwrl.dec.com  (Loren Hart)
Subject: Re: Data transfer between codes on different machines
Date: 29 Apr 92 22:27:38 GMT	[thread overview]
Message-ID: <sb+kz9+.loren@netcom.com> (raw)

mjl-b@minster.york.ac.uk (Mathew Lodge) writes:
: mishra@controls.ccd.harris.com (Sanjoy Mishra) writes:
: >I have code running on two different machines. Is there any interface
: >which I can use structural data between these two machines. It is possible
: >that two machines have ADA compiler from two different vendors.
: 
: Theoretically, you can use record representation clauses to specify the
: exact data layout at bit-level. Theoretically because the compiler may still
: add stuff to the record that it doesn't tell you about.
: 
: Different implementations may also have different ideas about bit numbering a
nd
: the like, but you can avoid that by checking appendix F of each compiler
: manual.
: 

Actually, it can get much worse than that.  Different machines store
integers in different byte orders.  Additionally, floating point numbers are
notoriously non-portable.  The only way to guarentee that files are
portable is to make sure to use some consistent format for all data
types.  The easiest portable method is to store all data as ascii
strings, although there may be a severe performance cost to this
approach.
-- 
=============================================================================
Mr Loren L. Hart                                       The Ada Ace Group, Inc
loren@netcom.com                                       P.O. Box 36195
				                       San Jose, CA  95158

             reply	other threads:[~1992-04-29 22:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1992-04-29 22:27 Loren Hart [this message]
  -- strict thread matches above, loose matches on Subject: below --
1992-04-29 12:41 Data transfer between codes on different machines mcsun!uknet!yorkohm!minster!mjl-b
1992-04-28 14:03 cis.ohio-state.edu!zaphod.mps.ohio-state.edu!mips!darwin.sura.net!mlb.sem
1992-04-28 13:59 Sanjoy Mishra
1992-04-28 13:58 Sanjoy Mishra
1992-04-28 13:57 Sanjoy Mishra
replies disabled

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