H
hugodogo
I need to read in Java some binary files created by c-programs. The
c-code runs on Linux or Solaris. When I run a test case I get the
following bytes patterns for the integer 1 (generated by cat output |
od -x).
C-code, Linux : 0001 0000
C-Code, Sparc : 0000 0001
Java : 0000 0100
This suprises me. The C-code on Sparc is big-endian, but the c-code on
Linux isn't little-endian and the Java output isn't big-endian. How do
I make sense of these patterns?
Thanks
c-code runs on Linux or Solaris. When I run a test case I get the
following bytes patterns for the integer 1 (generated by cat output |
od -x).
C-code, Linux : 0001 0000
C-Code, Sparc : 0000 0001
Java : 0000 0100
This suprises me. The C-code on Sparc is big-endian, but the c-code on
Linux isn't little-endian and the Java output isn't big-endian. How do
I make sense of these patterns?
Thanks