Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

old Pascal Real*6

davinci
Beginner
398 Views
My input files consist of older (Turbo?)-Pascal binary Real*6 variables, originating from PC-applications, starting with a sign-bit (0=pos,1=neg), 39 bits fraction and 8 bits exponent, not sure whether little or big Endian. Thus some sort of extended Fortran Real*4.

I do know what the fields must contain, therefore I might read the data into unformatted byte-strings and play with various bit-conversions until I see the proper result.

Or does CVF Fortran solve this bit-wise conversion more elegantly ?

DaVinci
0 Kudos
1 Reply
james1
Beginner
398 Views
If you mean does it have a means to automatically convert, I don't think so. This shouldn't be hard though to read in as you say, you can setup a character*6 to accept the data and equivalence that to an integer*8 variable, then work with that for your bitwise operations.

James
0 Kudos
Reply