[Linux-decnet-user] librms + vax floating point
Brought to you by:
chrissie_c,
ph3-der-loewe
|
From: <ada...@br...> - 2005-08-10 13:39:48
|
Hi im successfully using librms to open and read a binary file on a vax system. using '#pragma pack (1)' i was able to get my struct to be the same size as the record length of the file, and can read most of the data successfully, including strings and ints. But floats are a problem, they are totally wrong. I figure vax maybe stores floats in a different format from my i386 pc, and have found various references to things like vax 'D-Float' format and TARGET_FLOAT_FORMAT VAX_FLOAT_FORMAT (but i think that is for cros compiling). Does anyone know how to manipuilate/read floats from a vax binary file? Cheers Adam The information contained in this email may be commercially sensitive and/or legally privileged. It is intended solely for the person(s) to whom it is addressed. If you are not a named recipient, you are on notice of its status. Please notify the sender immediately by reply e-mail and then delete this message from your system. You must not disclose it to any other person, copy or distribute it or use it for any purpose. |